Fixed shadow fade and zfar computation as it was breaking shadow border filtering.

define_list_fix
Nehon 8 years ago
parent 35de6d9fda
commit 11562f88cf
  1. 2
      jme3-core/src/main/resources/Common/MatDefs/Shadow/PostShadow.frag

@ -80,7 +80,7 @@ void main(){
#endif
#ifdef FADE
shadow = max(0.0,mix(shadow,1.0,(shadowPosition - m_FadeInfo.x) * m_FadeInfo.y));
shadow = max(0.0, mix(shadow, 1.0, max(0.0, (shadowPosition - m_FadeInfo.x) * m_FadeInfo.y)));
#endif
shadow = shadow * m_ShadowIntensity + (1.0 - m_ShadowIntensity);

Loading…
Cancel
Save