Changeset 3086 for GTP


Ignore:
Timestamp:
10/31/08 17:41:53 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3085 r3086  
    6161} 
    6262 
     63#pragma position_invariant temporalSmoothing 
    6364 
    6465/** This shader computes the reprojection and stores reprojected color / depth values 
     
    107108        float3 viewVec = Interpol(oldTexCoords, oldbl, oldbr, oldtl, oldtr); 
    108109        //float3 oldSamplePos = -viewVec * eyeSpaceDepth + oldEyePos; 
    109         float3 oldSamplePos = oldEyePos - viewVec * oldCol.z; 
     110        float3 oldSamplePos = - viewVec * oldCol.z; 
     111        oldSamplePos += oldEyePos; 
    110112 
    111113        //const float oldDepth = oldCol.z; 
     
    303305        OUT.illum_col = temporalSmoothing(projPos, worldPos, currentDepth, oldTex, oldModelViewProj, temporalCoherence, ao, 
    304306                                              samples, colors, noiseTex, w, bl, br, tl, tr, IN.texCoord, eyePos, eyeDepth, 
    305                                                                           oldEyePos,oldbl, oldbr, oldtl, oldtr); 
     307                                                                          oldEyePos, oldbl, oldbr, oldtl, oldtr); 
    306308 
    307309        return OUT; 
Note: See TracChangeset for help on using the changeset viewer.