Ignore:
Timestamp:
04/13/09 17:08:51 (15 years ago)
Author:
mattausch
Message:

trying to reduce render targets but something srange

File:
1 edited

Legend:

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

    r3341 r3345  
    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; 
     256        //const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).x; 
     257        const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).z; 
    257258 
    258259        // calculate eye space position of sample in old frame 
     
    338339        const float3 normal = normalize(tex2Dlod(normalsTex, float4(IN.texCoord, 0, 0)).xyz); 
    339340 
    340 //#ifdef PERFORMANCE_TEST 
    341 #if 1 
     341#ifdef PERFORMANCE_TEST 
    342342        // do reprojection and filter out the pixels that are not save 
    343343        const float2 pValid = PixelValid(oldTex, 
     
    353353                                                                         ); 
    354354#else 
    355         const float2 pValid = float2(0,0); 
     355        const float2 pValid = float2(0, 0); 
    356356#endif 
    357357 
Note: See TracChangeset for help on using the changeset viewer.