Tilling and offset

Started by Mihai_Ionut_Floares, December 14, 2020, 23:06:03

Previous topic - Next topic

Mihai_Ionut_Floares

I have the UV in fragment shader. How to trile/offset them?

Mihai_Ionut_Floares

Never mind it is
UV = vec2(UV.x * tile_x, UV.y * tile_y);
UV = vec2(UV.x + offset_x, UV.y + offset.y);