diff --git a/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java b/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java index e296a7085..0b865d4e1 100644 --- a/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java +++ b/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java @@ -200,11 +200,15 @@ public class DirectionalLightShadowRenderer extends AbstractShadowRenderer { @Override protected void setMaterialParameters(Material material) { material.setColor("Splits", splits); + if (fadeInfo != null) { + material.setVector2("FadeInfo", fadeInfo); + } } @Override protected void clearMaterialParameters(Material material) { material.clearParam("Splits"); + material.clearParam("FadeInfo"); } /**