# Objective

Revert #17631

After some more experimentation, realised it's not the right approach.
This commit is contained in:
ickshonpe 2025-02-03 19:01:15 +00:00 committed by GitHub
parent d9df371ef2
commit f62775235d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ fn sd_inset_rounded_box(point: vec2<f32>, size: vec2<f32>, radius: vec4<f32>, in
// get alpha for antialiasing for sdf
fn antialias(distance: f32) -> f32 {
// Using the fwidth(distance) was causing artifacts, so just use the distance.
return saturate(1.0 - distance);
return saturate(0.5 - distance);
}
fn draw(in: VertexOutput, texture_color: vec4<f32>) -> vec4<f32> {