#if you do it in object space it relative
1 messages · Page 1 of 1 (latest)
I see, I may be mistaking how the Triplanar thing works then. I wanted the textures to remain in their normal scale even if I scale the object up, but I also want to be able to rotate and move the object without shifting the textures. Is this possible?
Oh thank you! That's exactly what I was looking for!
Sorry, one last question. This shader works when scaling uniformly, but for some reason when scaling on specific axes, it still stretches the texture
Hi, when I switch it to World, the textures don't align with the object's rotation. The previous shader works fine except for that snag with scaling on individual axes
The build in triplanar node does not support scaling different dimensions differently so with that node there is no way to do it
You might want to look into tools like probuilder for makeing geometry with propper uvs / scale so you can apply the texture normaly
Unity's link for the node is here:https://docs.unity3d.com/Packages/com.unity.shadergraph@12.1/manual/Triplanar-Node.html
They give a sample implementation (see the one under "Default"). You might try to scale those UV calcs individually by creating a custom node instead of using the built-in version. IDK how well that will work, particularly for non-axis aligned surfaces and non-uniform scaling. Haven't tried it. It's possible the math "just doesn't work that way".