| 1184 | #endif |
| 1185 | |
| 1186 | bool TerrainPatch::InitializeHeightMap() |
| 1187 | { |
| 1188 | PROFILE_CPU_NAMED("Terrain.InitializeHeightMap"); |
| 1189 | PROFILE_MEM(LevelTerrain); |
| 1190 | const auto heightmapSize = _terrain->GetChunkSize() * Terrain::ChunksCountEdge + 1; |
| 1191 | Array<float> heightmap; |
| 1192 | heightmap.Resize(heightmapSize * heightmapSize); |
| 1193 | heightmap.SetAll(0.0f); |
| 1194 | return SetupHeightMap(heightmap.Count(), heightmap.Get()); |
| 1195 | } |
| 1196 | |
| 1197 | #if TERRAIN_EDITING |
| 1198 |
no test coverage detected