Ignore:
Timestamp:
03/01/07 18:04:37 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic_PS.hlsl

    r2024 r2179  
    2828{ 
    2929 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);  
    3131} 
    3232 
     
    3939{ 
    4040 float dist = length(IN.CPos.xyz); 
     41 return float4(dist, dist * dist, 1, dist);      
     42} 
     43 
     44float4 CDistNorm(CPos_OUT IN, 
     45                                uniform float farPlane) : COLOR 
     46{ 
     47 float dist = length(IN.CPos.xyz) / farPlane; 
    4148 return float4(dist, dist * dist, 1, dist);      
    4249} 
Note: See TracChangeset for help on using the changeset viewer.