Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Programming
OpenGL
Tilling and offset
« previous
next »
Print
Pages: [
1
]
Tilling and offset
1 Replies
3018 Views
Mihai_Ionut_Floares
43
Tilling and offset
«
on:
December 14, 2020, 23:06:03 »
I have the UV in fragment shader. How to trile/offset them?
Logged
Mihai_Ionut_Floares
43
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);
Logged
Print
Pages: [
1
]
« previous
next »