spimort / TerraBrush

MIT License
698 stars 27 forks source link

Brush ignores scale #85

Open Joy-less opened 6 months ago

Joy-less commented 6 months ago

If you scale up the TerraBrush node, and try to paint on it, the brush is incorrectly offset. This means you have to scale up everything else instead.

spimort commented 6 months ago

The thing is it would be pretty hard I think to handle any kind of transform on the Terrain node because the way the shaders work. Everything is being calculated inside of a shader and the shader itself is not aware of the scaling. That would make it difficult to maintain.

That's the same thing for the position, you cannot move the terrain itself, because the shaders need to start the computation somewhere so it's always 0 based.

Tho, this is the same thing with most tool I think. For example, Terrain3D does not allow you to move or scale the terrain. I believe it's for the same reasons behind.

The thing you wanted to scale, is it for the packed scenes? Maybe what could be done is to add a scaling option on the packing scenes/objects. Would that help you? 🙂