mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): hill/valley generator with smooth bell curve shape
- Hill Generator: creates smooth bell-curve hills at cursor position with configurable radius and height - Valley mode: same shape inverted, creates natural depressions - Uses (1-t^2)^2 falloff for very smooth natural-looking slopes - Two buttons: "Create Hill" and "Create Valley" for quick terrain shaping without switching brush modes
This commit is contained in:
parent
88416bbb1d
commit
d6c58b5dc9
3 changed files with 39 additions and 0 deletions
|
|
@ -87,6 +87,9 @@ public:
|
|||
// Create a mesa/plateau (raised flat area with steep cliff edges)
|
||||
void createMesa(const glm::vec3& center, float radius, float height, float edgeSteepness);
|
||||
|
||||
// Create a smooth hill/mountain
|
||||
void createHill(const glm::vec3& center, float radius, float height);
|
||||
|
||||
// Import/export heightmap (raw 16-bit grayscale, 129x129)
|
||||
bool importHeightmap(const std::string& path, float heightScale);
|
||||
bool exportHeightmap(const std::string& path, float heightScale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue