- Timestamp:
- 10/08/08 17:39:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/mrt.cg
r3009 r3016 78 78 pixel fragtex(fragin IN, 79 79 uniform sampler2D dirtTex, 80 uniform float maxDepth,81 80 uniform sampler2D tex, 82 81 uniform float3 eyePos, … … 110 109 const float2 screenCoord = projPos.xy * 0.5f + 0.5f; 111 110 const float magView = length(Interpol(screenCoord, bl, br, tl, tr)); 112 pix.col.w = length(eyePos - IN.worldPos.xyz) * maxDepth/ magView;111 pix.col.w = length(eyePos - IN.worldPos.xyz) / magView; 113 112 114 113 #if 0 … … 122 121 123 122 pixel frag(fragin IN, 124 uniform float maxDepth,125 123 uniform float3 eyePos, 126 124 uniform float3 bl, … … 147 145 float2 screenCoord = projPos.xy * 0.5f + 0.5f; 148 146 const float magView = length(Interpol(screenCoord, bl, br, tl, tr)); 149 pix.col.w = length(eyePos - IN.worldPos.xyz) * maxDepth/ magView;147 pix.col.w = length(eyePos - IN.worldPos.xyz) / magView; 150 148 151 149 #if 0
Note: See TracChangeset
for help on using the changeset viewer.