Changeset 2982 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 10/01/08 00:40:59 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/deferred.cg
r2978 r2982 98 98 99 99 if (oldColor.w > 0) 100 OUT.color.w = lerp(oldColor.w, logLumScaled, 0. 2f);100 OUT.color.w = lerp(oldColor.w, logLumScaled, 0.1f); 101 101 else 102 102 OUT.color.w = logLumScaled; … … 217 217 218 218 if (oldColor.w > 0) 219 OUT.color.w = lerp(oldColor.w, logLumScaled, 0. 2f);219 OUT.color.w = lerp(oldColor.w, logLumScaled, 0.1f); 220 220 else 221 221 OUT.color.w = logLumScaled; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r2974 r2982 94 94 // hack: squeeze some information about ambient into the texture 95 95 pix.col.w = glstate.material.emission.x; 96 //pix.col.w = length(currentPos - IN.worldPos) 96 97 97 98 return pix; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/sky_preetham.cg
r2974 r2982 63 63 uniform float3 dColor, 64 64 uniform float3 eColor, 65 uniform float4x4 ModelView) 65 uniform float4x4 ModelView, 66 uniform float multiplier) 66 67 { 67 68 vtxout OUT; … … 94 95 OUT.color = float4(hcol, 1.0); 95 96 96 //OUT.color.rgb *= 2e-5f;97 OUT.color.rgb *= multiplier; 97 98 98 99 OUT.color2 = OUT.color; -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r2979 r2982 157 157 float newWeight; 158 158 159 float newNumSamples = ao.y; 160 159 161 if (//(temporalCoherence > 0) && 160 162 (tex.x >= 0.0f) && (tex.x < 1.0f) && 161 163 (tex.y >= 0.0f) && (tex.y < 1.0f) && 162 (abs(depthDif) < 1e- 3f)164 (abs(depthDif) < 1e-4f) 163 165 // check if visibility changed in the surrounding area: 164 166 // then we have to recompute 165 && (oldNumSamples > ao.y - 1.5f) 167 && ((newWeight < 10) || (oldNumSamples > 0.9f * newNumSamples)) 168 //&& (oldAvgDepth / newAvgDepth > 0.99) 166 169 ) 167 170 { … … 173 176 } 174 177 else 175 { 178 { 176 179 OUT.illum_col.xy = ao.xy; 177 180 newWeight = 0;
Note: See TracChangeset
for help on using the changeset viewer.