From 7d7c2c53c348c24733246754a43ea72ac7489b72 Mon Sep 17 00:00:00 2001 From: "bre..ns" Date: Tue, 18 Oct 2011 23:25:20 +0000 Subject: [PATCH] fixed lod in TestSpotLightTerrain git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8457 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/test/jme3test/light/TestSpotLightTerrain.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/test/jme3test/light/TestSpotLightTerrain.java b/engine/src/test/jme3test/light/TestSpotLightTerrain.java index 27cb0c8b5..d7e52e25e 100644 --- a/engine/src/test/jme3test/light/TestSpotLightTerrain.java +++ b/engine/src/test/jme3test/light/TestSpotLightTerrain.java @@ -53,6 +53,7 @@ import com.jme3.terrain.geomipmap.TerrainLodControl; import com.jme3.terrain.heightmap.AbstractHeightMap; import com.jme3.terrain.heightmap.ImageBasedHeightMap; import com.jme3.terrain.geomipmap.TerrainQuad; +import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator; import com.jme3.texture.Texture; import com.jme3.texture.Texture.WrapMode; import com.jme3.util.SkyFactory; @@ -194,6 +195,7 @@ public class TestSpotLightTerrain extends SimpleApplication { terrain = new TerrainQuad("terrain", 65, 513, heightmap.getHeightMap());//, new LodPerspectiveCalculatorFactory(getCamera(), 4)); // add this in to see it use entropy for LOD calculations TerrainLodControl control = new TerrainLodControl(terrain, getCamera()); + control.setLodCalculator( new DistanceLodCalculator(65, 2.7f) ); terrain.addControl(control); terrain.setMaterial(matTerrain); terrain.setModelBound(new BoundingBox());