text fixing

This commit is contained in:
Jonas H
2026-03-29 10:47:10 +02:00
parent 75a046d92a
commit 909ae8612a
6 changed files with 172 additions and 106 deletions

View File

@@ -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);
}