mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 17:13:51 +00:00
feat(editor): auto-texture roads with cobblestone on flatten
- paintAlongPath(): paints a texture along a line segment with configurable width and quadratic edge falloff - Road mode now automatically applies Elwynn cobblestone texture when flattening a road path (flatten + texture in one operation) - Quick distance check skips chunks far from the path for performance - Alpha blending uses max() so overlapping paths don't wash out
This commit is contained in:
parent
8974cef9c0
commit
6de6da766d
3 changed files with 67 additions and 3 deletions
|
|
@ -24,6 +24,10 @@ public:
|
|||
// Auto-paint steep slopes with rock texture
|
||||
void autoPaintBySlope(float slopeThreshold, const std::string& steepTexture);
|
||||
|
||||
// Paint a texture along a line (for roads/paths after flattening)
|
||||
void paintAlongPath(const glm::vec3& start, const glm::vec3& end,
|
||||
float width, const std::string& texturePath);
|
||||
|
||||
// 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