Changeset 3003 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Timestamp:
- 10/03/08 18:42:33 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/globillum.cg
r3001 r3003 175 175 float w = norm.w; 176 176 // the current world position 177 const float4 centerPosition = tex2D(positions, IN.texCoord.xy);177 const float4 centerPosition2 = tex2D(positions, IN.texCoord.xy); 178 178 179 179 /// reconstruct position from the eye space depth 180 /*float3 viewDir = normalize(IN.view);180 float3 viewDir = normalize(IN.view); 181 181 const float eyeDepth = tex2D(colors, IN.texCoord.xy).w; 182 182 … … 185 185 186 186 centerPosition.w = centerPosition2.w; 187 */ 187 188 188 // the current color 189 189 const float4 currentCol = tex2Dlod(colors, float4(IN.texCoord.xy, 0, 0)); … … 191 191 const float currentDepth = centerPosition.w; 192 192 193 GiStruct gi = globIllum(IN, colors, noiseTexture, samples, normal, centerPosition , w, eyePos, bl, br, tl, tr);193 GiStruct gi = globIllum(IN, colors, noiseTexture, samples, normal, centerPosition2, w, eyePos, bl, br, tl, tr); 194 194 195 195 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/tonemap.cg
r3002 r3003 33 33 average *= 1.0f / 4.0f; 34 34 35 return average;35 return tex2D(colors, IN.texCoord);//average; 36 36 } 37 37
Note: See TracChangeset
for help on using the changeset viewer.