Repeat one sprite over the entire surface of the plane

Heya, so this morning I made a little material plugin to try to make this kind of tiling easier to do. :slight_smile: And then played with these new tiling settings a bit: start, end and tiles. They’re set at line 25 like below:

mat.uvTiling.start.x = 0.52;
mat.uvTiling.end.x = 0.7;
mat.uvTiling.tiles.x = 5.5;

mat.uvTiling.start.y = 0;
mat.uvTiling.end.y = 0.29;
mat.uvTiling.tiles.y = 1;

So for v it’s using the top 29% of the texture and tiling once. For u it uses approximately the third fourth of the texture and tiles 5 and a half times. It looks better when the tile is seamless so I chose start and end values where the texture is white (ie the same color).

But note the formula for the uv tiling still needs more testing and fine tuning (ie I just made it up as I went along), but so far it seems to work ok and gives us more settings to play with. :slight_smile:

5 Likes