Hi guys i have a very simple geo which is need to unwrap. I'd love all the faces to have the same orientation towards the vertical direction (as you can see, that's a roof, it's very useful for roof tiles!). obj in attached for those who want to try
Image Not Found
All i need is something like this, but done procedurally
In case of randomly shifted vertex orders or if you want to keep it more generic you could also build rotation matrices based on the primitive normals: