Re: [hlcoders] Debugging Shaders

2010-05-29 Thread Marek Sieradzki
On Sat, May 29, 2010 at 3:33 AM, Byron Mallett wrote: > Haha, I guess that works. What colour values do the pixels scale to though? > Is it from 0-255? > Thanks for the help so far as well. [0,1]. Default FinalOutput scales it a bit (tonemapping for HDR) but that doesn't matter. _

Re: [hlcoders] Debugging Shaders

2010-05-28 Thread Byron Mallett
Haha, I guess that works. What colour values do the pixels scale to though? Is it from 0-255? Thanks for the help so far as well. On Sat, May 29, 2010 at 10:51 AM, Marek Sieradzki wrote: > On Fri, May 28, 2010 at 12:41 PM, Byron Mallett > wrote: > > So you had the pixel shader outputting variab

Re: [hlcoders] Debugging Shaders

2010-05-28 Thread Marek Sieradzki
On Fri, May 28, 2010 at 12:41 PM, Byron Mallett wrote: > So you had the pixel shader outputting variables somehow? Where specifically > did you put your code in order to return values from the shader, was it in > the DYNAMIC_STATE section of the shader cpp file? > > I knew we could send static con

Re: [hlcoders] Debugging Shaders

2010-05-28 Thread Byron Mallett
So you had the pixel shader outputting variables somehow? Where specifically did you put your code in order to return values from the shader, was it in the DYNAMIC_STATE section of the shader cpp file? I knew we could send static constants into the shader, though I didn't know we could return valu

Re: [hlcoders] Debugging Shaders

2010-05-28 Thread Marek Sieradzki
On Thu, May 27, 2010 at 4:16 AM, Byron Mallett wrote: > I'm working on writing some shaders for a machinima testbed I'm working on > at the moment, primarily trying to port over some depth of field shaders > I've seen over on the ATI site. > > However, I'd love to be able to debug my shader while

[hlcoders] Debugging Shaders

2010-05-26 Thread Byron Mallett
I'm working on writing some shaders for a machinima testbed I'm working on at the moment, primarily trying to port over some depth of field shaders I've seen over on the ATI site. However, I'd love to be able to debug my shader while it is running, since all I'm getting at the moment is a uniforml