]> git.sesse.net Git - nageru/commitdiff
Small syntactic tweak.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 25 Jul 2018 13:32:56 +0000 (15:32 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 25 Jul 2018 13:32:56 +0000 (15:32 +0200)
densify.vert

index 4fbab1803b9b22fcdb400092d3ac15ac01eabadc..0572afbdd54e015e82afd5ef2140330925fbdc2d 100644 (file)
@@ -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;