Ignore:
Timestamp:
10/01/08 00:40:59 (16 years ago)
Author:
mattausch
Message:

problematic: merging

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  
    9898 
    9999        if (oldColor.w > 0) 
    100                 OUT.color.w = lerp(oldColor.w, logLumScaled, 0.2f); 
     100                OUT.color.w = lerp(oldColor.w, logLumScaled, 0.1f); 
    101101        else 
    102102                OUT.color.w = logLumScaled; 
     
    217217 
    218218        if (oldColor.w > 0) 
    219                 OUT.color.w = lerp(oldColor.w, logLumScaled, 0.2f); 
     219                OUT.color.w = lerp(oldColor.w, logLumScaled, 0.1f); 
    220220        else 
    221221                OUT.color.w = logLumScaled; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg

    r2974 r2982  
    9494        // hack: squeeze some information about ambient into the texture 
    9595        pix.col.w = glstate.material.emission.x; 
     96        //pix.col.w = length(currentPos - IN.worldPos) 
    9697 
    9798        return pix; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/sky_preetham.cg

    r2974 r2982  
    6363                                  uniform float3 dColor, 
    6464                                  uniform float3 eColor, 
    65                                   uniform float4x4 ModelView) 
     65                                  uniform float4x4 ModelView, 
     66                                  uniform float multiplier) 
    6667{ 
    6768        vtxout OUT; 
     
    9495        OUT.color = float4(hcol, 1.0); 
    9596 
    96         //OUT.color.rgb *= 2e-5f;  
     97        OUT.color.rgb *= multiplier; 
    9798 
    9899        OUT.color2 = OUT.color; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg

    r2979 r2982  
    157157        float newWeight; 
    158158 
     159        float newNumSamples = ao.y; 
     160 
    159161        if (//(temporalCoherence > 0) && 
    160162                (tex.x >= 0.0f) && (tex.x < 1.0f) &&  
    161163                (tex.y >= 0.0f) && (tex.y < 1.0f) &&  
    162                 (abs(depthDif) < 1e-3f)  
     164                (abs(depthDif) < 1e-4f)  
    163165                // check if visibility changed in the surrounding area: 
    164166                // then we have to recompute 
    165                 && (oldNumSamples > ao.y - 1.5f)  
     167                && ((newWeight < 10) || (oldNumSamples > 0.9f * newNumSamples)) 
     168                //&& (oldAvgDepth / newAvgDepth > 0.99) 
    166169                ) 
    167170        { 
     
    173176        } 
    174177        else 
    175         { 
     178        {        
    176179                OUT.illum_col.xy = ao.xy; 
    177180                newWeight = 0; 
Note: See TracChangeset for help on using the changeset viewer.