Sometimes we don't want (or would be unfeasible) to make a full mesh replacement, just replace the materials and they would be applied for every object that uses them ingame. Problem is, sometimes, the objects have too stretched out UVs (Like large grass fields, asphalt roads...) with incorrect scales.
Would be very helpful to be able to tile the texture by multiplying the UVs by a vec2 property, setup in the very material, pretty much like Unity's materials do.
Use case 1: A much smaller high quality and highly tileable grass texture could be applied and tiled many times to have appropriate m^2 scale on the surfaces.
Use case 2: In NFS Underground 2, the road textures are 8:1 ratio, so to have a 1024 pixels of texture width resolution, the length would have to be 8192 pixels! Such a vec2 could multiply their UVs by (1, 0.125) and we could replace it with a square 1024x1024 texture, or use the extra saved space to bump up to 2048x2048.
Sometimes we don't want (or would be unfeasible) to make a full mesh replacement, just replace the materials and they would be applied for every object that uses them ingame. Problem is, sometimes, the objects have too stretched out UVs (Like large grass fields, asphalt roads...) with incorrect scales.
Would be very helpful to be able to tile the texture by multiplying the UVs by a vec2 property, setup in the very material, pretty much like Unity's materials do.
Use case 1: A much smaller high quality and highly tileable grass texture could be applied and tiled many times to have appropriate m^2 scale on the surfaces.
Use case 2: In NFS Underground 2, the road textures are 8:1 ratio, so to have a 1024 pixels of texture width resolution, the length would have to be 8192 pixels! Such a vec2 could multiply their UVs by
(1, 0.125)
and we could replace it with a square 1024x1024 texture, or use the extra saved space to bump up to 2048x2048.