generating UV for objects with a bit of math in the vertex #shader (similar to the default material in #unreal) to make blocking easier. i eventually understood how to retrieve scale from a mat4x4, it has been a mystery for years
code and details: https://forum.godotengine.org/t/blockout-shader-material/136513
#gamedev #godotengine #math