removed the comment and returned a final modification to the method.

fix-456
javasabr 8 years ago
parent f016469933
commit c2219ecce5
  1. 2
      jme3-core/src/main/java/com/jme3/shadow/AbstractShadowRenderer.java
  2. 1
      jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java

@ -204,7 +204,7 @@ public abstract class AbstractShadowRenderer implements SceneProcessor, Savable,
*
* @param postShadowMat
*/
protected void setPostShadowMaterial(Material postShadowMat) {
protected final void setPostShadowMaterial(Material postShadowMat) {
this.postshadowMat = postShadowMat;
postshadowMat.setFloat("ShadowMapSize", shadowMapSize);
for (int i = 0; i < nbShadowMaps; i++) {

@ -136,7 +136,6 @@ public class DirectionalLightShadowRenderer extends AbstractShadowRenderer {
@Override
protected void updateShadowCams(Camera viewCam) {
// it needs to support for editors
if (light == null) {
logger.warning("The light can't be null for a " + getClass().getName());
return;

Loading…
Cancel
Save