* Fix issue 179, shadows and HDR don't work together (thanks spencers)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7304 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 609d975965
commit b06652b6a8
  1. 2
      engine/src/core-data/Common/ShaderLib/Shadow.glsllib

@ -99,7 +99,7 @@ float Shadow_DoPCF_2x2(in SHADOWMAP tex, in vec4 projCoord){
float Shadow_GetShadow(in SHADOWMAP tex, in vec4 projCoord){
return Shadow_DoDither_2x2(tex, projCoord) + Shadow_BorderCheck(projCoord.xy);
return clamp(Shadow_DoDither_2x2(tex, projCoord) + Shadow_BorderCheck(projCoord.xy), 0.0, 1.0);
}

Loading…
Cancel
Save