Changeset 2881 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 08/29/08 00:00:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/globillum.cg
r2880 r2881 29 29 30 30 31 struct pixel 31 struct pixel2 32 32 { 33 33 float4 ssao_col: COLOR0; 34 34 float4 illum_col: COLOR1; 35 }; 36 37 38 struct pixel 39 { 40 float4 illum_col: COLOR0; 35 41 }; 36 42 … … 85 91 float2 texcoord = IN.texCoord.xy + offsetTransformed * AREA_SIZE * w; 86 92 93 // use lower lod level to improve cache coherence 87 94 float3 sample_position = tex2Dlod(positions, float4(texcoord, 0, 1)).xyz; 88 95 float3 sample_color = tex2Dlod(colors, float4(texcoord, 0, 2)).xyz; … … 114 121 /** The mrt shader for screen space ambient occlusion + indirect illumination 115 122 */ 116 pixel main(fragment IN,123 pixel2 main(fragment IN, 117 124 uniform sampler2D colors, 118 125 uniform sampler2D positions, … … 128 135 ) 129 136 { 130 pixel OUT;137 pixel2 OUT; 131 138 132 139 float4 norm = tex2D(normals, IN.texCoord.xy);
Note: See TracChangeset
for help on using the changeset viewer.