writing depth value in shader
Hi, i'm having a problem with writing a depth value (i think that is the problem anyway :( ) I'm using Nvidia 7950 GX2 card. Basically, i'm trying to copy depth buffer 1 to depth buffer 2. I know that you need something like below when reading depth texture in nvidia 6/7 series.
depth = dot(tex2D(depthSourceSampler, texCoord).arg, float3(0.996093809371817670572857294849, 0.0038909914428586627756752238080039, 1.5199185323666651467481343000015e-5));
However, after copying this depth value to destination depth buffer, it looks like everything that is using the dst. depth buffer is getting wrong depth testing. (drawing over previously rendered scenes) Am i missing something? In other nvidia cards (such as 8800 series), i could just use tex2D to read depth texture and write that value without problem.
Thanks in advance
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement