mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-08 10:03:51 +00:00
feat(editor): sand dune generator for desert terrain
- Dune Generator: creates rolling sand dune patterns with primary and secondary sine waves plus hash-based variation - Configurable wavelength, amplitude, wind direction, and seed - Directional waves create realistic parallel dune ridges - Secondary wave adds natural irregularity at 2.3x wavelength - Perpendicular variation breaks up uniform dune lines - Pair with Desert biome paint for instant Tanaris-style zones
This commit is contained in:
parent
8255cda9a8
commit
79db38219f
3 changed files with 49 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ public:
|
|||
// Rotate terrain 90 degrees clockwise
|
||||
void rotateTerrain90();
|
||||
|
||||
// Create rolling sand dune pattern
|
||||
void createDunes(float wavelength, float amplitude, float direction, uint32_t seed);
|
||||
|
||||
// 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