Ver código fonte

PBRTerrainTest: avoid loading the heightmap twice

Stephen Gold 4 anos atrás
pai
commit
1f595f18f0

+ 0 - 4
jme3-examples/src/main/java/jme3test/terrain/PBRTerrainTest.java

@@ -176,10 +176,6 @@ public class PBRTerrainTest extends SimpleApplication {
         matTerrain.setTexture("AlphaMap_1", assetManager.loadTexture("Textures/Terrain/splat/alpha2.png"));
         // this material also supports 'AlphaMap_2', so you can get up to 12 diffuse textures
 
-        // HEIGHTMAP image (for the terrain heightmap)
-        TextureKey hmKey = new TextureKey("Textures/Terrain/splat/mountains512.png", false);
-        Texture heightMapImage = assetManager.loadTexture(hmKey);
-
         // DIRT texture, Diffuse textures 0 to 3 use the first AlphaMap
         Texture dirt = assetManager.loadTexture("Textures/Terrain/PBR/Ground037_1K_Color.png");
         dirt.setWrap(WrapMode.Repeat);