Changeset 3323 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Timestamp:
- 02/20/09 18:47:25 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SampleGenerator.cpp
r3322 r3323 169 169 s[i].y = r * sin(a); 170 170 171 total1 += x[0];171 /*total1 += x[0]; 172 172 total2 += x[1]; 173 173 totalSamples ++; … … 179 179 180 180 cout << "here3 " << n1 << " " << n2 << endl; 181 } 181 }*/ 182 182 } 183 183 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaderenv.h
r3322 r3323 9 9 //#define NUM_SAMPLES 16 10 10 //#define NUM_SAMPLES 24 11 #define NUM_SAMPLES 811 #define NUM_SAMPLES 24 12 12 13 13 //#define MIN_SAMPLES 48 14 #define MIN_SAMPLES 814 #define MIN_SAMPLES 24 15 15 16 16 #define DISTANCE_SCALE 1e-2f -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsaoSep.cg
r3322 r3323 192 192 { 193 193 // the filtered ssao value 194 //OUT.illum_col.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight);194 OUT.illum_col.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 195 195 } 196 196 … … 232 232 { 233 233 // the filtered ssao value 234 //ao.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight);234 ao.x = FilterXY(IN.texCoord, ssaoTex, colorsTex, bl, br, tl, tr, xyStep, convergence, maxConvergence, spatialWeight); 235 235 } 236 236 … … 241 241 if (depth < DEPTH_THRESHOLD) 242 242 { 243 OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x);244 //OUT.illum_col.xyz = max(minAO, 1.0f - ao.x);243 //OUT.illum_col.xyz = col.xyz * max(minAO, 1.0f - ao.x); 244 OUT.illum_col.xyz = max(minAO, 1.0f - ao.x); 245 245 } 246 246 else
Note: See TracChangeset
for help on using the changeset viewer.