Changeset 2202 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic
- Timestamp:
- 03/07/07 17:37:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPShadowAccum.hlsl
r2190 r2202 2 2 #define LightSize 2.0 3 3 #define Bias 0.05 4 #define KernelSize 9.04 #define KernelSize 4.0 5 5 #define LightFov 3.14 * 0.5 6 #define ShadowIntensity 0.87 #define SHADOWMAP_SIZE 512.0f6 #define ShadowIntensity 3.0 7 #define SHADOWMAP_SIZE 1024.0f 8 8 9 9 #define shadowColor float4(0.2,0.2,0.2,1) … … 51 51 if( cz < r.z - Bias && dot(lc - q, lc - q) < RR2 + BiasSlope ) 52 52 shadow += size * size; 53 54 //if( cz < r.z - Bias)55 // shadow++;53 /* 54 if( cz < r.z - Bias) 55 shadow=1;*/ 56 56 } 57 57 } 58 //shadow /= KernelSize * KernelSize;59 shadow *= Deltal * Deltal / RR2;60 //shadow = saturate(shadow);61 return 1;58 59 //return step; 60 shadow *= Deltal * Deltal * step * step / RR2 * ShadowIntensity * ShadowIntensity; 61 62 62 return shadowColor + (1 - shadowColor) * (1 - shadow); 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.