Changeset 2507 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic
- Timestamp:
- 07/03/07 15:49:12 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPShadowMap_PS.hlsl
r2442 r2507 12 12 }; 13 13 14 #define DEPTH_BIAS 0.0 0115 #define DEPTH_BIAS_VSM 0.00 116 #define DEPTH_EPSILON 0.0 514 #define DEPTH_BIAS 0.01 15 #define DEPTH_BIAS_VSM 0.00005 16 #define DEPTH_EPSILON 0.01 17 17 #define DIST_BIAS 0.005 18 18 #define DIST_BIAS_VSM 0.0005 … … 21 21 //#define shadowColor float4(0.95,0.95,0.95,1) 22 22 #define shadowColor float4(0.8,0.8,0.8,1) 23 //#define shadowColorfloat4(0.2,0.2,0.2,1)23 #define shadowColor2 float4(0.2,0.2,0.2,1) 24 24 //#define shadowColor float4(0.0,0.0,0.0,1) 25 25 … … 37 37 float storedDepth = abs(tex2D(shadowMap, pos.xy).r); 38 38 //light = (pos.z - storedDepth.r)*100.0; 39 light = max(storedDepth + DEPTH_BIAS > pos.z, shadowColor );39 light = max(storedDepth + DEPTH_BIAS > pos.z, shadowColor2); 40 40 } 41 41 return light; … … 70 70 light = 0; 71 71 72 return shadowColor + (1 - shadowColor) *light;72 return light; 73 73 74 74 }
Note: See TracChangeset
for help on using the changeset viewer.