- Timestamp:
- 11/24/08 18:02:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3156 r3157 184 184 185 185 const float squaredLen = diffVec.x * diffVec.x + diffVec.y * diffVec.y + diffVec.z * diffVec.z; 186 187 186 const float oldWeight = clamp(oldPixel.y, .0f, temporalCoherence); 188 187 //const float oldWeight = oldPixel.y; … … 262 261 const float3 sampleNormal = normalize(tex2Dlod(normalTex, float4(texcoord, 0, 0)).xyz); 263 262 264 numSamples += sampleColor.x;265 266 263 267 264 //////////////// … … 292 289 total_ao += cosAngle * aoContrib; 293 290 #endif 291 // check if the samples have been valid in the last frame 292 numSamples += (1.0f - step(1.0f, lengthToSample)) * sampleColor.x; 294 293 } 295 294 … … 343 342 const float3 samplePos = ReconstructSamplePos(sampleColor.w, texcoord, bl, br, tl, tr); 344 343 345 numSamples += sampleColor.x;346 347 344 348 345 //////////////// … … 371 368 total_ao += cosAngle * aoContrib; 372 369 #endif 370 371 // check if the samples have been valid in the last frame 372 numSamples += (1.0f - step(1.0f, lengthToSample)) * sampleColor.x; 373 373 } 374 374
Note: See TracChangeset
for help on using the changeset viewer.