From 1c2661ed12a9609afc6af6dabf5c38c2ec7770e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 26 Nov 2019 08:38:41 +0100 Subject: [PATCH] gl renderer: Fix repeat node shader once again --- gsk/resources/glsl/repeat.fs.glsl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gsk/resources/glsl/repeat.fs.glsl b/gsk/resources/glsl/repeat.fs.glsl index 070b56abe6..0bd973eea9 100644 --- a/gsk/resources/glsl/repeat.fs.glsl +++ b/gsk/resources/glsl/repeat.fs.glsl @@ -1,4 +1,3 @@ - uniform vec4 u_child_bounds; uniform vec4 u_texture_rect; @@ -21,8 +20,8 @@ void main() { float mapped_x = (vUv.x - u_texture_rect.x) / tw; float mapped_y = (vUv.y - u_texture_rect.y) / th; - float wrapped_x = u_child_bounds.x + wrap(mapped_x * u_child_bounds.z, 1.0); - float wrapped_y = u_child_bounds.y + wrap(mapped_y * u_child_bounds.w, 1.0); + float wrapped_x = wrap(u_child_bounds.x + mapped_x * u_child_bounds.z, 1.0); + float wrapped_y = wrap(u_child_bounds.y + mapped_y * u_child_bounds.w, 1.0); vec2 tp; tp.x = u_texture_rect.x + (wrapped_x * tw);