- Timestamp:
- 11/20/08 13:14:40 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/combineSsao.cg
r3148 r3149 90 90 uniform sampler2D offsetTex, 91 91 uniform float2 filterOffs[NUM_SSAO_FILTERSAMPLES], 92 uniform float filterWeights[NUM_SSAO_FILTERSAMPLES] ,92 uniform float filterWeights[NUM_SSAO_FILTERSAMPLES] 93 93 ) 94 94 { -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/tonemap.cg
r3148 r3149 33 33 float maximum = .0f; 34 34 35 // the rgb weights35 // the rgb-to-luminance weightings 36 36 const float3 w = float3(0.299f, 0.587f, 0.114f); 37 37 //const float3 w = float3(0.2125f, 0.7154f, 0.0721f); … … 135 135 float logLumScaled = logLum * INV_LOGLUM_RANGE - logLumOffset; 136 136 137 138 ///////////// 139 //-- exponential smoothing of the tone mapping over time 140 137 141 const float expFactor = 1e-2f; 138 // exponential smoothing of tone mapping over time142 139 143 if (oldLogLum > 1e-3f) // check if loglum from last frame too small (=> tm too bright) 140 144 OUT.col.w = lerp(oldLogLum, logLumScaled, expFactor);
Note: See TracChangeset
for help on using the changeset viewer.