Changeset 3111 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 11/09/08 13:34:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3110 r3111 145 145 float4 illum_col; 146 146 147 147 148 //////////// 148 149 //-- dynamic objects 149 150 150 float4x4 trafo; 151 152 if (id < 10) 153 trafo = oldModelViewProj; 154 else 155 trafo = inverseModelTrafo * oldModelViewProj; 151 //float4x4 trafo = (id < 10.0f) ? oldModelViewProj : mul(oldModelViewProj, inverseModelTrafo); 152 float4x4 trafo = mul(oldModelViewProj, inverseModelTrafo); 156 153 157 154 // compute translational portion 158 155 const float3 translatedPt = worldPos.xyz - oldEyePos; 156 159 157 160 158 ///////////////// … … 167 165 // fit from unit cube into 0 .. 1 168 166 const float2 oldTexCoords = backProjPos.xy * 0.5f + 0.5f; 169 170 167 // retrieve the sample from the last frame 171 168 const float4 oldPixel = tex2Dlod(oldTex, float4(oldTexCoords, .0f, .0f)); … … 173 170 174 171 #if USE_EYESPACE_DEPTH 172 175 173 // calculate eye space position of sample in old frame 176 174 const float oldEyeSpaceDepth = oldPixel.w;
Note: See TracChangeset
for help on using the changeset viewer.