Ignore:
Timestamp:
04/13/09 21:44:00 (15 years ago)
Author:
mattausch
Message:

1 rendertarget not working perfectly

File:
1 edited

Legend:

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

    r3345 r3347  
    255255        const float4 oldPixel = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)); 
    256256        //const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).x; 
    257         const float oldDiff = tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).z; 
     257        const float oldDiff = oldPixel.z;//tex2Dlod(myTex, float4(oldTexCoords, .0f, .0f)).z; 
    258258 
    259259        // calculate eye space position of sample in old frame 
     
    306306                isPixelValid = pixelIsValid; 
    307307        } 
     308        //isPixelValid = pixelIsValid; 
    308309         
    309310        return float2(isPixelValid, abs(oldEyeSpaceDepth - projectedEyeSpaceDepth)); 
Note: See TracChangeset for help on using the changeset viewer.