]> git.sesse.net Git - nageru/blobdiff - densify.vert
Small syntactic tweak.
[nageru] / densify.vert
index f32b9d4151cbe3a4f587c2a6cf5225be426c7673..0572afbdd54e015e82afd5ef2140330925fbdc2d 100644 (file)
@@ -22,9 +22,9 @@ void main()
        // this is measured without variational refinement, so it might be moot
        // with it.
        //
-       // Tihs maps [0.0,1.0] to [-0.25 to 1.25), ie. extends the patch by 25% in
+       // 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;