feat(editor): reset-to-flat button for terrain, consolidation

- "Reset to Flat" button in Noise Generator section: zeroes all heights
  across entire tile for starting over without creating a new terrain
- Useful workflow: reset → noise → smooth → scale → clamp → auto-paint
This commit is contained in:
Kelsi 2026-05-05 06:40:26 -07:00
parent 3ac40d27ad
commit f593606251
3 changed files with 20 additions and 1 deletions

View file

@ -479,8 +479,12 @@ void EditorUI::renderBrushPanel(EditorApp& app) {
app.getTerrainEditor().scaleHeights(hScale);
app.showToast("Heights scaled");
}
if (ImGui::Button("Reset to Flat", ImVec2(-1, 0))) {
app.getTerrainEditor().resetToFlat();
app.showToast("Terrain reset to flat");
}
ImGui::TextColored(ImVec4(0.6f, 0.6f, 0.6f, 1),
"Exaggerate (>1) or flatten (<1) terrain relief");
"Scale: exaggerate (>1) or flatten (<1) relief");
}
ImGui::Separator();