- Timestamp:
- 02/11/09 12:54:01 (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
r3297 r3298 8 8 //#define NUM_SAMPLES 8 9 9 //#define NUM_SAMPLES 16 10 #define NUM_SAMPLES 2411 //#define NUM_SAMPLES 4810 //#define NUM_SAMPLES 24 11 #define NUM_SAMPLES 48 12 12 13 13 #define MIN_SAMPLES 8 … … 64 64 #define NUM_DOF_TABS 16 65 65 66 //#define USE_GTX66 #define USE_GTX 67 67 68 68 #endif // __SHADERENV_H -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg
r3297 r3298 216 216 217 217 // filter up to a certain convergance value and leave out background (sky) by checking depth 218 if ((convergence < SSAO_CONVERGENCE_THRESHOLD) && (col.w < 1e10f)) 218 if ((convergence < SSAO_CONVERGENCE_THRESHOLD) && 219 (col.w < 1e10f)) 219 220 { 220 221 const float distanceScale = 1.0f; … … 223 224 const float convergenceWeight = SSAO_CONVERGENCE_THRESHOLD / (ssaoFilterRadius - 1.0f); 224 225 const float convergenceScale = convergenceWeight / (convergence + convergenceWeight); 225 const float scale = 1;//ssaoFilterRadius * convergenceScale * distanceScale; 226 //const float scale = 1;//ssaoFilterRadius * convergenceScale * distanceScale; 227 const float scale = convergenceScale; 226 228 227 229 // the filtered ssao value
Note: See TracChangeset
for help on using the changeset viewer.