Explorar o código

Update Terrain

ShiroSmith %!s(int64=7) %!d(string=hai) anos
pai
achega
61f8d01e8f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      h3d/scene/pbr/terrain/Tile.hx

+ 2 - 0
h3d/scene/pbr/terrain/Tile.hx

@@ -96,6 +96,7 @@ class Tile extends h3d.scene.Mesh {
 				getTerrain().copyPass.apply(oldHeightMap, heightMap);
 				oldHeightMap.dispose();
 			}
+			needNewPixelCapture = true;
 		}
 
 		if(surfaceIndexMap == null || surfaceIndexMap.width != getTerrain().weightMapResolution){
@@ -119,6 +120,7 @@ class Tile extends h3d.scene.Mesh {
 					getTerrain().copyPass.apply(oldArray[i], surfaceWeights[i]);
 			}
 			generateWeightArray();
+
 			for(i in 0 ... oldArray.length)
 				if( oldArray[i] != null) oldArray[i].dispose();
 		}