How to repeat texture on model?

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;

2017-08-24_12-05-49

1 Like

There is an example here scrolling texture which may help https://github.com/subsoap/deffx

1 Like