diff --git a/client/renderer/core.ts b/client/renderer/core.ts index ad38584..dc5c2ab 100644 --- a/client/renderer/core.ts +++ b/client/renderer/core.ts @@ -78,8 +78,10 @@ struct Uniforms { struct VertexOut { @builtin(position) position: vec4, - @location(0) tex_coord: vec2, - @location(1) color: vec4, + // centroid: with msaa, pixels on a triangle's edge would otherwise sample outside it, past the + // sprite's edge in the atlas, which shows up as dark lines between blocks from far away + @location(0) @interpolate(perspective, centroid) tex_coord: vec2, + @location(1) @interpolate(perspective, centroid) color: vec4, } @vertex