Text only
|
Text with Images
LWJGL Forum
Programming => OpenGL => Topic started by: Mihai_Ionut_Floares on December 14, 2020, 23:06:03
Title:
Tilling and offset
Post by:
Mihai_Ionut_Floares
on
December 14, 2020, 23:06:03
I have the UV in fragment shader. How to trile/offset them?
Title:
Re: Tilling and offset
Post by:
Mihai_Ionut_Floares
on
December 14, 2020, 23:14:15
Never mind it is
Code
Select
Expand
UV = vec2(UV.x * tile_x, UV.y * tile_y);
UV = vec2(UV.x + offset_x, UV.y + offset.y);
Text only
|
Text with Images