Tiling a Polygon Node

(this should be posted in ShaderGraph I guess, sorry I cannot change it)

Hi, I’m trying to use Tiling and Offset in a Polygon Node, but it does not seems to tile it 5 times, instead it scales the polygon. How should I duplicate it?

2 Likes

The tiling property of the Tiling and Offset node is really just a scale. It multiplies the UVs (as you can see the green of the UVs goes solid in the preview, but really it’s going >1). If you pipe that UV into a sample texture node using a texture with its wrap mode set to repeat, it’ll be a tiling UV. It the texture doesn’t use repeat and instead clamp, it’ll just be the colors of the edge of that texture stretched out forever.

The polygon node is similar to a texture with the wrap mode set to clamp, it doesn’t repeat. It works assuming 0.5, 0.5 in the UVs is the center, and the width and height set how big it is within the uv range supplied…

If you want it to repeat, add a Fraction node between the output of the Tiling and Offset node and the input of the Polygon node.

5 Likes

try to add fraction node from tiling node then add polygon node to fraction