- Timestamp:
- 04/13/09 22:01:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3347 r3349 254 254 // retrieve the sample from the last frame 255 255 const float4 oldPixel = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)); 256 //const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).x; 257 const float oldDiff = oldPixel.z;//tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).z; 256 const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).x; 258 257 259 258 // calculate eye space position of sample in old frame … … 306 305 isPixelValid = pixelIsValid; 307 306 } 308 //isPixelValid = pixelIsValid;309 307 310 308 return float2(isPixelValid, abs(oldEyeSpaceDepth - projectedEyeSpaceDepth)); … … 340 338 const float3 normal = normalize(tex2Dlod(normalsTex, float4(IN.texCoord, 0, 0)).xyz); 341 339 342 #ifdef PERFORMANCE_TEST 340 //#ifdef PERFORMANCE_TEST 341 #if 1 343 342 // do reprojection and filter out the pixels that are not save 344 343 const float2 pValid = PixelValid(oldTex, … … 354 353 ); 355 354 #else 356 const float2 pValid = float2(0, 355 const float2 pValid = float2(0,0); 357 356 #endif 358 357
Note: See TracChangeset
for help on using the changeset viewer.