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

define_list_fix
Nehon 8 years ago
parent be6d2765e3
commit 9cf67b902e
  1. 6
      jme3-core/src/main/java/com/jme3/light/SpotLight.java

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

Loading…
Cancel
Save