mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
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:
parent
3ac40d27ad
commit
f593606251
3 changed files with 20 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue