Changeset 3149 for GTP


Ignore:
Timestamp:
11/20/08 13:14:40 (16 years ago)
Author:
mattausch
Message:
 
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  
    9090                          uniform sampler2D offsetTex, 
    9191                          uniform float2 filterOffs[NUM_SSAO_FILTERSAMPLES], 
    92                           uniform float filterWeights[NUM_SSAO_FILTERSAMPLES], 
     92                          uniform float filterWeights[NUM_SSAO_FILTERSAMPLES] 
    9393                          ) 
    9494{ 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/tonemap.cg

    r3148 r3149  
    3333        float maximum = .0f; 
    3434 
    35         // the rgb weights 
     35        // the rgb-to-luminance weightings 
    3636        const float3 w = float3(0.299f, 0.587f, 0.114f); 
    3737        //const float3 w = float3(0.2125f, 0.7154f, 0.0721f); 
     
    135135        float logLumScaled = logLum * INV_LOGLUM_RANGE - logLumOffset; 
    136136 
     137 
     138        ///////////// 
     139        //-- exponential smoothing of the tone mapping over time 
     140 
    137141        const float expFactor = 1e-2f; 
    138         // exponential smoothing of tone mapping over time 
     142         
    139143        if (oldLogLum > 1e-3f) // check if loglum from last frame too small (=> tm too bright) 
    140144                OUT.col.w = lerp(oldLogLum, logLumScaled, expFactor); 
Note: See TracChangeset for help on using the changeset viewer.