#3d Scale independent shader

1 messages · Page 1 of 1 (latest)

rose lintel
#

I want to create a shader with functionality like from this tutorial https://www.youtube.com/watch?v=HKTIuvFHAPQ but for 3d assets. Im doubting its possible as UVs are vector2 and 3d objects are vector3. The only way for it to work would be to scale an object by all axis always. but if I want to do a single axis there's going to be issues

To use the scale of an object in shader graph we need to modify UV values that we pass to the rest of our shader. In this video I will show you how to use Object node and Tiling and Offset node to do just that.

@Jettelly
Learn all there is about shaders in Unity
https://learn.jettelly.com/unity-shader-bible/

Learn to write more maintainable...

▶ Play video
silver acorn
# rose lintel thanks ill look into it

The tiling on the node is unfortunately uniform between all axis I believe so if you do want to tile a specific amount per axis you'd have to chop it up.

#

I think Cyan had a tutorial on making one divided up