Ignore:
Timestamp:
10/03/08 17:16:48 (16 years ago)
Author:
mattausch
Message:

started using downsampling

File:
1 edited

Legend:

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

    r2999 r3002  
    2222float4 DownSample(frag IN, 
    2323                                  uniform sampler2D colors, 
    24                                   float2 downSampleOffs[16]) : COLOR 
     24                                  float2 downSampleOffs[4]) : COLOR 
    2525{     
    2626    float4 average = .0f; 
    2727 
    28     for(int i = 0; i < 16; ++ i) 
     28    for(int i = 0; i < 4; ++ i) 
    2929    { 
    3030        average += tex2D(colors, IN.texCoord + downSampleOffs[i]); 
    3131    } 
    3232         
    33     average *= 1.0f / 16.0f; 
     33    average *= 1.0f / 4.0f; 
    3434 
    3535    return average; 
Note: See TracChangeset for help on using the changeset viewer.