From 455edbec8cc99e57f8d2b05c835a213644a81514 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 25 Jul 2018 15:32:56 +0200 Subject: [PATCH] Small syntactic tweak. --- densify.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/densify.vert b/densify.vert index 4fbab18..0572afb 100644 --- a/densify.vert +++ b/densify.vert @@ -24,7 +24,7 @@ void main() // // This maps [0.0,1.0] to [-0.25,1.25], ie. extends the patch by 25% in // all directions. - vec2 grown_pos = (position * 1.5) - vec2(0.25, 0.25); + vec2 grown_pos = (position * 1.5) - 0.25; image_pos = patch_spacing * ivec2(patch_x, patch_y) + patch_size * grown_pos; -- 2.39.2