Fix dark lines when viewing blocks from far away

This commit is contained in:
2026-09-25 15:22:33 -03:00
parent f8d406dcf0
commit 25f8c683bb
+4 -2
View File
@@ -78,8 +78,10 @@ struct Uniforms {
struct VertexOut {
@builtin(position) position: vec4<f32>,
@location(0) tex_coord: vec2<f32>,
@location(1) color: vec4<f32>,
// 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<f32>,
@location(1) @interpolate(perspective, centroid) color: vec4<f32>,
}
@vertex