Ignore:
Timestamp:
04/13/09 22:01:56 (15 years ago)
Author:
mattausch
Message:

changed back to old version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg

    r3347 r3349  
    254254        // retrieve the sample from the last frame 
    255255        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; 
    258257 
    259258        // calculate eye space position of sample in old frame 
     
    306305                isPixelValid = pixelIsValid; 
    307306        } 
    308         //isPixelValid = pixelIsValid; 
    309307         
    310308        return float2(isPixelValid, abs(oldEyeSpaceDepth - projectedEyeSpaceDepth)); 
     
    340338        const float3 normal = normalize(tex2Dlod(normalsTex, float4(IN.texCoord, 0, 0)).xyz); 
    341339 
    342 #ifdef PERFORMANCE_TEST 
     340//#ifdef PERFORMANCE_TEST 
     341#if 1 
    343342        // do reprojection and filter out the pixels that are not save 
    344343        const float2 pValid = PixelValid(oldTex, 
     
    354353                                                                         ); 
    355354#else 
    356         const float2 pValid = float2(0, 0); 
     355        const float2 pValid = float2(0,0); 
    357356#endif 
    358357 
Note: See TracChangeset for help on using the changeset viewer.