Josef Grunig
02-24-2006, 01:58 AM
Hi all,
I'm working on a shader using sampler2DShadow target and making depth comparison with shadow2D function. Everything works well, but now I would like to get also the depth value. I know that I can use sampler2D target with texture2D lookup function, but I would like to continue using the sampler2DShadow target. Is there a way to get depth values with this target?
Can I use both target bound to the same texture?
Thank you,
Jo
I'm working on a shader using sampler2DShadow target and making depth comparison with shadow2D function. Everything works well, but now I would like to get also the depth value. I know that I can use sampler2D target with texture2D lookup function, but I would like to continue using the sampler2DShadow target. Is there a way to get depth values with this target?
Can I use both target bound to the same texture?
Thank you,
Jo