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