- Timestamp:
- 04/13/09 17:08:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r3341 r3345 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; 256 //const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).x; 257 const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).z; 257 258 258 259 // calculate eye space position of sample in old frame … … 338 339 const float3 normal = normalize(tex2Dlod(normalsTex, float4(IN.texCoord, 0, 0)).xyz); 339 340 340 //#ifdef PERFORMANCE_TEST 341 #if 1 341 #ifdef PERFORMANCE_TEST 342 342 // do reprojection and filter out the pixels that are not save 343 343 const float2 pValid = PixelValid(oldTex, … … 353 353 ); 354 354 #else 355 const float2 pValid = float2(0, 0);355 const float2 pValid = float2(0, 0); 356 356 #endif 357 357
Note: See TracChangeset
for help on using the changeset viewer.