# Objective Revert #17631 After some more experimentation, realised it's not the right approach.
This commit is contained in:
parent
d9df371ef2
commit
f62775235d
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user