Reverted some changes to light classes which was not meant to be committed as part of #314.

experimental
Daniel Johansson 10 years ago
parent 9ba90251d6
commit 88bf9d4580
  1. 16
      jme3-core/src/main/java/com/jme3/light/Light.java
  2. 4
      jme3-core/src/main/java/com/jme3/light/PointLight.java

@ -122,22 +122,6 @@ public abstract class Light implements Savable, Cloneable {
setColor(color);
}
/**
* Default constructor for Light.
*/
public Light() {
}
/**
* Constructor which allows setting of the color.
*
* @param color the color to apply to this light.
*/
public Light(final ColorRGBA color) {
this.color = color;
}
/**
* Returns the color of the light.
*

@ -192,8 +192,8 @@ public class PointLight extends Light {
} else {
// Sphere v. box collision
return FastMath.abs(box.getCenter().x - position.x) < radius + box.getXExtent()
&& FastMath.abs(box.getCenter().y - position.y) < radius + box.getYExtent()
&& FastMath.abs(box.getCenter().z - position.z) < radius + box.getZExtent();
&& FastMath.abs(box.getCenter().y - position.y) < radius + box.getYExtent()
&& FastMath.abs(box.getCenter().z - position.z) < radius + box.getZExtent();
}
}

Loading…
Cancel
Save