Changeset 2217 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic
- Timestamp:
- 03/09/07 10:31:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPShadowMap_PS.hlsl
r2186 r2217 15 15 #define DEPTH_BIAS_VSM 0.001 16 16 #define DEPTH_EPSILON 0.00005 17 #define DIST_BIAS 0. 118 #define DIST_BIAS_VSM 0.00 117 #define DIST_BIAS 0.005 18 #define DIST_BIAS_VSM 0.005 19 19 #define DIST_EPSILON 0.001 20 20 21 #define shadowColor float4(0. 2,0.2,0.2,1)21 #define shadowColor float4(0.5,0.5,0.5,1) 22 22 23 23 float4 shadowMapDepth(LightVPos_OUT IN, … … 78 78 { 79 79 float4 pos = (IN.LightVPos / IN.LightVPos.w); 80 //float d = length(pos.xy);81 //light = saturate((1.0 - d)/0.05);82 //if(d <= 1.0)83 //{80 float d = length(pos.xy); 81 light = saturate((1.0 - d)/0.05); 82 if(d <= 1.0) 83 { 84 84 float dist = length(IN.LightCPos.xyz) / lightFarPlane; 85 85 pos.xy = (pos.xy + 1.0) / 2.0; … … 88 88 dist -= DIST_BIAS; 89 89 light = max(dist <= storedDist.r, shadowColor); 90 //}90 } 91 91 } 92 92
Note: See TracChangeset
for help on using the changeset viewer.