Changeset 3002 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 10/03/08 17:16:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/tonemap.cg
r2999 r3002 22 22 float4 DownSample(frag IN, 23 23 uniform sampler2D colors, 24 float2 downSampleOffs[ 16]) : COLOR24 float2 downSampleOffs[4]) : COLOR 25 25 { 26 26 float4 average = .0f; 27 27 28 for(int i = 0; i < 16; ++ i)28 for(int i = 0; i < 4; ++ i) 29 29 { 30 30 average += tex2D(colors, IN.texCoord + downSampleOffs[i]); 31 31 } 32 32 33 average *= 1.0f / 16.0f;33 average *= 1.0f / 4.0f; 34 34 35 35 return average;
Note: See TracChangeset
for help on using the changeset viewer.