X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=splat.vert;h=fd856662a4802b6102495631982b9533c472ed31;hb=1f51d2000d5ce3a1f83ebd3a8a24bfbee5b37d5e;hp=a1274c68ca97cb857c720ef6d1462ef90281f5a7;hpb=b21b2d8045035a08dd3a3eeabfe1c9457cc5cf61;p=nageru diff --git a/splat.vert b/splat.vert index a1274c6..fd85666 100644 --- a/splat.vert +++ b/splat.vert @@ -27,7 +27,7 @@ void main() } full_flow *= inv_flow_size; - vec2 patch_center = (ivec2(x, y) + 0.5) / textureSize(flow_tex, 0) + full_flow * splat_alpha; + vec2 patch_center = (ivec2(x, y) + 0.5) * inv_flow_size + full_flow * splat_alpha; image_pos = patch_center + splat_size * (position - 0.5); flow = full_flow;