From 25f8c683bb19d1e6e921264a7a8c6cf0b048f901 Mon Sep 17 00:00:00 2001 From: paulaboks Date: Fri, 25 Sep 2026 15:22:33 -0300 Subject: [PATCH] Fix dark lines when viewing blocks from far away --- client/renderer/core.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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