From: Steinar H. Gunderson Date: Wed, 25 Jul 2018 13:32:56 +0000 (+0200) Subject: Small syntactic tweak. X-Git-Tag: 1.8.0~76^2~179 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=455edbec8cc99e57f8d2b05c835a213644a81514;p=nageru Small syntactic tweak. --- 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;