mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
feat(editor): scatter texture patches for natural surface variety
- Scatter Patches: randomly places texture circles across the terrain for natural-looking surface variation (dirt patches, rock outcrops) - Configurable count, min/max radius, and seed - Preset buttons for dirt and rock patches - Uses the existing paint() method with random positions - Adds visual variety to otherwise uniform terrain texturing
This commit is contained in:
parent
16a096b25d
commit
b00143e8f7
3 changed files with 46 additions and 0 deletions
|
|
@ -31,6 +31,10 @@ public:
|
|||
// Gradient blend: transitions base texture from one to another across tile
|
||||
void gradientBlend(const std::string& tex1, const std::string& tex2, bool horizontal);
|
||||
|
||||
// Scatter random texture patches across the terrain
|
||||
void scatterPatches(const std::string& texturePath, int count, float minRadius,
|
||||
float maxRadius, uint32_t seed);
|
||||
|
||||
// Paint the active texture at the given world position
|
||||
// Returns list of modified chunk indices
|
||||
std::vector<int> paint(const glm::vec3& center, float radius, float strength, float falloff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue