- Timestamp:
- 04/13/09 21:44:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3345 r3347 255 255 const float4 oldPixel = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)); 256 256 //const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).x; 257 const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).z;257 const float oldDiff = oldPixel.z;//tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).z; 258 258 259 259 // calculate eye space position of sample in old frame … … 306 306 isPixelValid = pixelIsValid; 307 307 } 308 //isPixelValid = pixelIsValid; 308 309 309 310 return float2(isPixelValid, abs(oldEyeSpaceDepth - projectedEyeSpaceDepth));
Note: See TracChangeset
for help on using the changeset viewer.