Ignore:
Timestamp:
07/03/07 15:49:12 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

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

    r2442 r2507  
    1212}; 
    1313 
    14 #define DEPTH_BIAS      0.001 
    15 #define DEPTH_BIAS_VSM  0.001 
    16 #define DEPTH_EPSILON   0.05 
     14#define DEPTH_BIAS      0.01 
     15#define DEPTH_BIAS_VSM  0.00005 
     16#define DEPTH_EPSILON   0.01 
    1717#define DIST_BIAS       0.005 
    1818#define DIST_BIAS_VSM   0.0005 
     
    2121//#define shadowColor float4(0.95,0.95,0.95,1) 
    2222#define shadowColor float4(0.8,0.8,0.8,1) 
    23 //#define shadowColor float4(0.2,0.2,0.2,1) 
     23#define shadowColor2 float4(0.2,0.2,0.2,1) 
    2424//#define shadowColor float4(0.0,0.0,0.0,1) 
    2525 
     
    3737        float storedDepth = abs(tex2D(shadowMap, pos.xy).r); 
    3838        //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);                     
    4040  }              
    4141  return light;  
     
    7070   light = 0;    
    7171         
    72   return shadowColor + (1 - shadowColor) * light;        
     72  return light;  
    7373   
    7474} 
Note: See TracChangeset for help on using the changeset viewer.