- Timestamp:
- 10/13/08 10:13:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3026 r3028 172 172 currentPos /= currentPos.w; 173 173 174 const float currentDepth = currentPos.z * 1e-3f; 174 const float precisionScale = 1e-3f; 175 const float currentDepth = currentPos.z * precisionScale; 175 176 176 177 const float2 ao = ssao(IN, colors, noise, samples, normal, eyeSpacePos, w, bl, br, tl, tr, normalize(viewDir)); … … 188 189 189 190 // the current depth projected into the old frame 190 const float projDepth = projPos.z * 1e-3f;191 const float projDepth = projPos.z * precisionScale; 191 192 192 193 // fit from unit cube into 0 .. 1 … … 202 203 203 204 //const float oldNumSamples = oldCol.y; 204 const float oldWeight = 50;//clamp(oldCol.y, 0, temporalCoherence);205 const float oldWeight = clamp(oldCol.y, 0, temporalCoherence); 205 206 206 207 float newWeight;
Note: See TracChangeset
for help on using the changeset viewer.