Fixed an issue where shadowZFadeLenght was not working with the DirectionalLightShadowRenderer

experimental
Nehon 10 years ago
parent 34cdd21488
commit 24a971a186
  1. 4
      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");
}
/**

Loading…
Cancel
Save