Ignore:
Timestamp:
02/25/09 17:41:00 (15 years ago)
Author:
mattausch
Message:

found error, working ok

File:
1 edited

Legend:

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

    r3326 r3328  
    253253         
    254254        // retrieve the sample from the last frame 
    255         const float4 oldPixel = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)); 
    256         const float oldDiff = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)).x; 
     255        const float4 oldPixel = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)); 
     256        const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).x; 
    257257 
    258258        // calculate eye space position of sample in old frame 
     
    272272 
    273273        // check if the pixel belonged to a dynamic object in the last frame 
    274         const bool newDynamic = (squaredLen > 100000);//DYNAMIC_OBJECTS_THRESHOLD); 
    275         const bool oldDynamic = (oldDiff > 1000000);//DYNAMIC_OBJECTS_THRESHOLD); 
     274        const bool newDynamic = (squaredLen > DYNAMIC_OBJECTS_THRESHOLD); 
     275        const bool oldDynamic = (oldDiff > DYNAMIC_OBJECTS_THRESHOLD); 
    276276 
    277277 
     
    306306        } 
    307307         
    308         //isPixelValid = 2e20f; 
    309308        return float2(isPixelValid, abs(oldEyeSpaceDepth - projectedEyeSpaceDepth)); 
    310309} 
Note: See TracChangeset for help on using the changeset viewer.