Changeset 3108
- Timestamp:
- 11/07/08 01:48:44 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3107 r3108 17 17 18 18 //#define DISTANCE_SCALE 1e-1f 19 #define DISTANCE_SCALE 5e-2f19 #define DISTANCE_SCALE 1e-2f 20 20 //#define DISTANCE_SCALE 0.2f 21 21 … … 29 29 //-- reprojection 30 30 31 #define MIN_DEPTH_DIFF 1e-2f31 #define MIN_DEPTH_DIFF 5e-2f 32 32 #define PRECISION_SCALE 1e-1f 33 33 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3107 r3108 172 172 const float3 viewVec = Interpol(oldTexCoords, oldbl, oldbr, oldtl, oldtr); 173 173 const float invlen = 1.0f / length(viewVec); 174 const float projectedEyeSpaceDepth = length(translatedPt) * invlen;174 const float projectedEyeSpaceDepth = invlen * length(translatedPt); 175 175 176 176 //const float depthDif = abs(oldEyeSpaceDepth - projectedEyeSpaceDepth); 177 //const float depthDif = abs(oldEyeSpaceDepth - projectedEyeSpaceDepth) / projectedEyeSpaceDepth; 178 const float depthDif = abs(1.0f - oldEyeSpaceDepth / projectedEyeSpaceDepth); 177 //const float depthDif = abs(1.0f - oldEyeSpaceDepth / projectedEyeSpaceDepth); 178 179 const float depthDif = abs(projectedEyeSpaceDepth - oldEyeSpaceDepth ) / projectedEyeSpaceDepth; 179 180 180 181 #else
Note: See TracChangeset
for help on using the changeset viewer.