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 @Override
protected void setMaterialParameters(Material material) { protected void setMaterialParameters(Material material) {
material.setColor("Splits", splits); material.setColor("Splits", splits);
if (fadeInfo != null) {
material.setVector2("FadeInfo", fadeInfo);
}
} }
@Override @Override
protected void clearMaterialParameters(Material material) { protected void clearMaterialParameters(Material material) {
material.clearParam("Splits"); material.clearParam("Splits");
material.clearParam("FadeInfo");
} }
/** /**

Loading…
Cancel
Save