Skip to content

Commit 8aaf5b5

Browse files
committed
Fixing alpha channel for text #1245
1 parent af7ac96 commit 8aaf5b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gfx/text.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ fn fragMain(
113113
if (c.a <= 0.0) {
114114
discard;
115115
}
116-
return vec4<f32>(color.rgb * c.a, color.a);
116+
return vec4<f32>(color.rgb, color.a * c.a);
117117
}

0 commit comments

Comments
 (0)