- Timestamp:
- 03/01/07 18:04:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic_PS.hlsl
r2024 r2179 28 28 { 29 29 float4 pos = IN.VPosition / IN.VPosition.w; 30 return float4(pos.z, pos.z * pos.z, 1, 1);30 return float4(pos.z, pos.z * pos.z, 0, pos.z); 31 31 } 32 32 … … 39 39 { 40 40 float dist = length(IN.CPos.xyz); 41 return float4(dist, dist * dist, 1, dist); 42 } 43 44 float4 CDistNorm(CPos_OUT IN, 45 uniform float farPlane) : COLOR 46 { 47 float dist = length(IN.CPos.xyz) / farPlane; 41 48 return float4(dist, dist * dist, 1, dist); 42 49 }
Note: See TracChangeset
for help on using the changeset viewer.