- Timestamp:
- 04/13/09 21:44:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3346 r3347 154 154 else 155 155 { 156 w = .0f;156 w = .0f; 157 157 idx = .0f; 158 158 } 159 159 160 return float3(ssao, w, idx);160 return float3(ssao, idx, w); 161 161 } 162 162 … … 201 201 tex2Dlod(samples, float4((0.5f + i + idx) / NUM_PRECOMPUTED_SAMPLES, 0.5f, .0f, .0f)).xy; 202 202 203 203 204 //////////////////// 204 205 //-- add random noise: reflect around random normal vector … … 207 208 if (convergence < SSAO_CONVERGENCE_THRESHOLD) 208 209 { 209 float2 mynoise = tex2Dlod(noiseTex, float4(IN.texCoord * 4.0f, 0, 0)).xy;210 float2 mynoise = tex2Dlod(noiseTex, float4(IN.texCoord * 4.0f, .0f, .0f)).xy; 210 211 //offset = myreflect(samples[i], mynoise); 211 212 //offset = myrotate(samples[i], mynoise.x); … … 584 585 else if (ao.y > partlyResetThres) 585 586 { 587 if (oldIdx > 4.0f * NUM_SAMPLES) oldIdx = 0; 586 588 //oldWeight = min(oldWeight, 4.0f * NUM_SAMPLES); oldIdx = oldWeight; 587 //oldWeight =.0f; oldIdx = .0f;589 oldWeight = oldIdx;//.0f; oldIdx = .0f; 588 590 } 589 591 }
Note: See TracChangeset
for help on using the changeset viewer.