瀏覽代碼

PBRTerrainTest: avoid loading the heightmap twice

Stephen Gold 4 年之前
父節點
當前提交
1f595f18f0
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      jme3-examples/src/main/java/jme3test/terrain/PBRTerrainTest.java

+ 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"));
         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
         // 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
         // DIRT texture, Diffuse textures 0 to 3 use the first AlphaMap
         Texture dirt = assetManager.loadTexture("Textures/Terrain/PBR/Ground037_1K_Color.png");
         Texture dirt = assetManager.loadTexture("Textures/Terrain/PBR/Ground037_1K_Color.png");
         dirt.setWrap(WrapMode.Repeat);
         dirt.setWrap(WrapMode.Repeat);