fixed but with normals not updating in terrain

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7844 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
bre..ns 14 years ago
parent 24dd8692f6
commit 7b93faa8e1
  1. 9
      engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java

@ -32,8 +32,6 @@
package com.jme3.terrain.geomipmap;
import com.jme3.scene.control.UpdateControl;
import com.jme3.app.AppTask;
import com.jme3.material.Material;
import java.io.IOException;
import java.util.HashMap;
@ -69,9 +67,6 @@ import com.jme3.util.TangentBinormalGenerator;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.Future;
/**
* A terrain quad is a node in the quad tree of the terrain system.
@ -143,7 +138,9 @@ public class TerrainQuad extends Node implements Terrain {
public TerrainQuad(String name, int patchSize, int size, Vector3f scale, float[] heightMap, LodCalculatorFactory lodCalculatorFactory) {
this(name, patchSize, size, scale, heightMap, size, new Vector2f(), 0, lodCalculatorFactory);
affectedAreaBBox = new BoundingBox(new Vector3f(0,0,0), size, Float.MAX_VALUE, size);
fixNormalEdges(affectedAreaBBox);
addControl(new NormalRecalcControl(this));
}
protected TerrainQuad(String name, int patchSize, int size,

Loading…
Cancel
Save