mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
feat(editor): smooth entire tile, snap-to-ground toggle, object list improvements
- Smooth Entire Tile: global smoothing pass with configurable iterations (1-10). Smooths across chunk boundaries for seamless results. Updates inner vertices from smoothed outer grid. Great after noise generation. - Snap to Ground checkbox: on by default, objects placed at terrain surface. Disable for floating/airborne objects. - Random Rotation + Snap Ground checkboxes side-by-side for fast setup - Toast notifications on noise apply and smooth operations - Smooth pass uses cross-chunk neighbor averaging for edge continuity
This commit is contained in:
parent
5df007b7b9
commit
9bc05fae87
4 changed files with 82 additions and 1 deletions
|
|
@ -54,6 +54,9 @@ public:
|
|||
// Noise generator: applies procedural height noise to the terrain
|
||||
void applyNoise(float frequency, float amplitude, int octaves, uint32_t seed);
|
||||
|
||||
// Global smooth pass across entire tile (N iterations)
|
||||
void smoothEntireTile(int iterations);
|
||||
|
||||
// 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