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:
Kelsi 2026-05-05 08:16:40 -07:00
parent 8974cef9c0
commit 6de6da766d
3 changed files with 67 additions and 3 deletions

View file

@ -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);