mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-06-03 13:41:43 -04:00
feat(editor): Generate Complete Zone now includes water fill + beach smoothing
This commit is contained in:
@@ -849,6 +849,11 @@ void EditorApp::generateCompleteZone() {
|
||||
// Step 5: Slope paint (rock on cliffs)
|
||||
texturePainter_.autoPaintBySlope(0.4f, "Tileset\\Desolace\\DesolaceRock01.blp");
|
||||
|
||||
// Step 6: Fill low areas with water and smooth beaches
|
||||
float waterLevel = terrain_.chunks[0].position[2] + 5.0f;
|
||||
terrainEditor_.fillWater(waterLevel, 0);
|
||||
terrainEditor_.smoothBeaches(waterLevel, 12.0f);
|
||||
|
||||
// Refresh
|
||||
auto mesh = terrainEditor_.regenerateMesh();
|
||||
viewport_.clearTerrain();
|
||||
|
||||
Reference in New Issue
Block a user