瀏覽代碼

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

Daniel Johansson 10 年之前
父節點
當前提交
dd6356eff1

+ 3 - 3
jme3-core/src/main/java/com/jme3/light/AmbientLight.java

@@ -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) {
     }

+ 6 - 6
jme3-core/src/main/java/com/jme3/light/DirectionalLight.java

@@ -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;