Shadows Fixed issue where Edge filtereing was not properly initialized and was causing a crash when compiling the shader

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10518 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent ba8f8db23c
commit 85b4605229
  1. 4
      engine/src/core/com/jme3/shadow/AbstractShadowRenderer.java

@ -197,10 +197,6 @@ public abstract class AbstractShadowRenderer implements SceneProcessor, Savable
throw new NullPointerException(); throw new NullPointerException();
} }
if (this.edgeFilteringMode == filterMode) {
return;
}
this.edgeFilteringMode = filterMode; this.edgeFilteringMode = filterMode;
postshadowMat.setInt("FilterMode", filterMode.getMaterialParamValue()); postshadowMat.setInt("FilterMode", filterMode.getMaterialParamValue());
postshadowMat.setFloat("PCFEdge", edgesThickness); postshadowMat.setFloat("PCFEdge", edgesThickness);

Loading…
Cancel
Save