Fix dark lines when viewing blocks from far away
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user