Hello Guest

Tilling and offset

  • 1 Replies
  • 228 Views
Tilling and offset
« on: December 14, 2020, 23:06:03 »
I have the UV in fragment shader. How to trile/offset them?

Re: Tilling and offset
« Reply #1 on: December 14, 2020, 23:14:15 »
Never mind it is
Code: [Select]
UV = vec2(UV.x * tile_x, UV.y * tile_y);
UV = vec2(UV.x + offset_x, UV.y + offset.y);