Ignore:
Timestamp:
08/28/08 22:37:40 (16 years ago)
Author:
mattausch
Message:

downsampling not working yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/globillum.cg

    r2876 r2880  
    3232{ 
    3333        float4 ssao_col: COLOR0; 
    34         float4 combined_col: COLOR1; 
    35         float4 illum_col: COLOR2; 
     34        float4 illum_col: COLOR1; 
    3635}; 
    3736 
     
    185184        } 
    186185 
    187         OUT.combined_col = (currentCol + OUT.illum_col) * OUT.ssao_col.x; 
    188         //OUT.combined_col = float4(newDepth, oldDepth, 1, 1) ; 
    189  
    190186        OUT.ssao_col.w = currentDepth; 
    191187 
    192188        return OUT; 
    193189} 
     190 
     191 
     192pixel combine(fragment IN,  
     193                          uniform sampler2D colors, 
     194                          uniform sampler2D ssaoTex, 
     195                          uniform sampler2D illumTex 
     196                   ) 
     197{ 
     198        pixel OUT; 
     199 
     200        float4 col = tex2D(colors, IN.texCoord.xy); 
     201        float ao = tex2D(ssaoTex, IN.texCoord.xy).x; 
     202        float4 illum = tex2D(illumTex, IN.texCoord.xy); 
     203         
     204        OUT.illum_col = (col + illum) * ao; 
     205 
     206        return OUT; 
     207} 
Note: See TracChangeset for help on using the changeset viewer.