feat(editor): terrain mirror X/Y for symmetric zone design

- Mirror X: copies left half of terrain to right half (mirrored)
- Mirror Y: copies top half to bottom half (mirrored)
- Useful for creating symmetric zones, arenas, or balanced landscapes
- Auto-stitches all chunk edges after mirror for seamless results
- UI buttons in Sculpt panel under "Mirror Terrain" section
This commit is contained in:
Kelsi 2026-05-05 06:24:28 -07:00
parent ac88aed250
commit dd2b9294b5
3 changed files with 61 additions and 0 deletions

View file

@ -459,6 +459,17 @@ void EditorUI::renderBrushPanel(EditorApp& app) {
}
ImGui::Separator();
if (ImGui::CollapsingHeader("Mirror Terrain")) {
if (ImGui::Button("Mirror X (Left<>Right)", ImVec2(-1, 0))) {
app.getTerrainEditor().mirrorX();
app.showToast("Terrain mirrored X");
}
if (ImGui::Button("Mirror Y (Top<>Bottom)", ImVec2(-1, 0))) {
app.getTerrainEditor().mirrorY();
app.showToast("Terrain mirrored Y");
}
}
if (ImGui::CollapsingHeader("Stamp / Clone")) {
auto& brush2 = app.getTerrainEditor().brush();
if (ImGui::Button("Copy Stamp", ImVec2(120, 0)) && brush2.isActive())