Ignore:
Timestamp:
06/05/07 01:57:13 (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

    r2337 r2404  
    1515#define DEPTH_BIAS_VSM  0.001 
    1616#define DEPTH_EPSILON   0.05 
    17 #define DIST_BIAS       0.0005 
     17#define DIST_BIAS       0.005 
    1818#define DIST_BIAS_VSM   0.0005 
    1919#define DIST_EPSILON    0.001 
     
    7676                                         uniform sampler2D shadowMap) : COLOR 
    7777{ 
    78   float4 light = shadowColor;   
     78  float4 light = 0;//shadowColor;   
    7979  if( IN.LightVPos.z > 0.0) 
    8080  {      
    8181    float4 pos = (IN.LightVPos / IN.LightVPos.w); 
    8282        float d = length(pos.xy); 
    83     light = saturate((1.0 - d)/0.05);            
     83    //light = saturate((1.0 - d)/0.05);          
    8484    if(d <= 1.0) 
    8585    { 
     
    9090                light = max(dist < storedDist + DIST_BIAS, shadowColor);     
    9191                light = dist < storedDist + DIST_BIAS; 
     92                //if(dist < storedDist + DIST_BIAS) 
     93                //light = 1; 
    9294    } 
    9395  } 
Note: See TracChangeset for help on using the changeset viewer.