Fixed SpotLight constructor to properly compute the invSpotRange see https://github.com/jMonkeyEngine/jmonkeyengine/issues/563

cleanup_build_scripts
Nehon 8 years ago
parent cfd491e270
commit dd8271e8b3
  1. 6
      jme3-core/src/main/java/com/jme3/light/SpotLight.java

@ -102,7 +102,7 @@ public class SpotLight extends Light {
this();
setPosition(position);
setDirection(direction);
this.spotRange = range;
setSpotRange(range);
}
/**
@ -133,7 +133,7 @@ public class SpotLight extends Light {
computeAngleParameters();
setPosition(position);
setDirection(direction);
this.spotRange = range;
setSpotRange(range);
}
/**
@ -158,7 +158,7 @@ public class SpotLight extends Light {
computeAngleParameters();
setPosition(position);
setDirection(direction);
this.spotRange = range;
setSpotRange(range);
}

Loading…
Cancel
Save