I need a plane model with repeated texture.
Something like in picture. How can i do that?
You need to set the UV wrap modes in the material. See https://www.defold.com/manuals/material/#_wrap_modes
3 Likes
I set wrap mode to WRAP_MODE_REPEAT. Then i multiple texture coords in shader.
Is that correct way, to do that in shader?
vec4 color = texture2D(tex0, var_texcoord0.xy * 2.0) * tint_pm;
1 Like