mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): Generate Complete Zone now includes water fill + beach smoothing
This commit is contained in:
parent
426863f19a
commit
aed6e00aac
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue