Reverted some more light code which should not be in this branch.

This commit is contained in:
Daniel Johansson 2015-09-13 20:30:36 +01:00
parent b68035570d
commit dd6356eff1
2 changed files with 9 additions and 9 deletions

View File

@ -45,7 +45,7 @@ import com.jme3.util.TempVars;
* regardless of the model's location. The material's ambient color is
* multiplied by the ambient light color to get the final ambient color of
* an object.
*
*
* @author Kirill Vainer
*/
public class AmbientLight extends Light {
@ -61,12 +61,12 @@ public class AmbientLight extends Light {
public boolean intersectsBox(BoundingBox box, TempVars vars) {
return true;
}
@Override
public boolean intersectsFrustum(Camera camera, TempVars vars) {
return true;
}
@Override
public void computeLastDistance(Spatial owner) {
}

View File

@ -85,10 +85,10 @@ public class DirectionalLight extends Light {
/**
* Returns the direction vector of the light.
*
*
* @return The direction vector of the light.
*
* @see DirectionalLight#setDirection(com.jme3.math.Vector3f)
*
* @see DirectionalLight#setDirection(com.jme3.math.Vector3f)
*/
public Vector3f getDirection() {
return direction;
@ -99,7 +99,7 @@ public class DirectionalLight extends Light {
* <p>
* Represents the direction the light is shining.
* (1, 0, 0) would represent light shining in the +X direction.
*
*
* @param dir the direction of the light.
*/
public final void setDirection(Vector3f dir){
@ -113,12 +113,12 @@ public class DirectionalLight extends Light {
public boolean intersectsBox(BoundingBox box, TempVars vars) {
return true;
}
@Override
public boolean intersectsFrustum(Camera camera, TempVars vars) {
return true;
}
@Override
public Type getType() {
return Type.Directional;