Explorar o código

added recalculateAllNormals() to TerrainQuad

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9237 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
bre..ns %!s(int64=13) %!d(string=hai) anos
pai
achega
e769d453ec

+ 7 - 1
engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java

@@ -238,7 +238,13 @@ public class TerrainQuad extends Node implements Terrain {
         }
     }*/
 
-
+    /**
+     * Forces the recalculation of all normals on the terrain.
+     */
+    public void recalculateAllNormals() {
+        affectedAreaBBox = new BoundingBox(new Vector3f(0,0,0), totalSize*2, Float.MAX_VALUE, totalSize*2);
+    }
+    
     /**
      * Create just a flat heightmap
      */