예제 #1
0
 public void ResetHeightMap()
 {
     modifiedTerrainData.SetHeights(0, 0, QuestryTerrainUtils.ConstructZeroHeightMap(modifiedTerrainData.heightmapResolution));
 }
예제 #2
0
 public void LoadHeightMapFromTexture()
 {
     modifiedTerrainData.SetHeights(0, 0, QuestryTerrainUtils.ConvertGrayScaleTextureToHeightMap(heightMapImage, modifiedTerrainData.heightmapResolution, heightMapScale));
 }