40 vec2 ar = vec2(aspect, 1.0);
46 vec2 gv = uva *
tiles;
47 vec2 f = fract(gv) - 0.5;
51 vec2 mirrored = abs(fract(uv * ar) - 0.5) + 0.5;
52 vec2 tuv = mirrored / ar;
54 vec4 c1 = texture(samp, tuv);
55 vec4 c2 = texture(samp, tuv * 0.5);
56 vec4 c3 = texture(samp, tuv * 0.25);
57 vec4 c4 = texture(samp, tuv * 0.125);
58 vec4 mixcol = c1 * 0.4 + c2 * 0.3 + c3 * 0.2 + c4 * 0.1;
62 color = vec4(mixcol.rgb, 1.0);