text fixing
This commit is contained in:
@@ -37,9 +37,9 @@ fn vs_main(in: VertexIn) -> VertexOut
|
||||
fn fs_main(in: VertexOut) -> @location(0) vec4<f32>
|
||||
{
|
||||
let coverage = textureSample(glyph_atlas, glyph_sampler, in.uv).r;
|
||||
if coverage < 0.5
|
||||
if coverage < 0.004
|
||||
{
|
||||
discard;
|
||||
}
|
||||
return vec4<f32>(1.0, 1.0, 1.0, 1.0);
|
||||
return vec4<f32>(1.0, 1.0, 1.0, coverage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user