Reverted some changes to light classes which was not meant to be committed as part of #314.
This commit is contained in:
parent
9ba90251d6
commit
88bf9d4580
@ -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…
x
Reference in New Issue
Block a user