#if you do it in object space it relative

1 messages · Page 1 of 1 (latest)

lusty pagoda
#

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?

brisk ingot
#

this will fix it

#

its scales/ tiles the texture based on the scale of the object

lusty pagoda
#

Oh thank you! That's exactly what I was looking for!

lusty pagoda
# brisk ingot

Sorry, one last question. This shader works when scaling uniformly, but for some reason when scaling on specific axes, it still stretches the texture

bitter oracle
#

switch that to world

#

is what Malzbier meant before the thread

lusty pagoda
brisk ingot
#

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

cosmic patio
#

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".