mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-28 14:19:52 -06:00
overlays/sdf: Avoid 0-height inner boxes for switch capsule
- Can introduce dfdx/dfdy discontinuities on the midline as the distance changes direction - The seams can sometimes become visible if a border is applied on some GPUs
This commit is contained in:
parent
a03d4f69f8
commit
1b11f38364
@ -99,7 +99,7 @@ namespace rsx::overlays
|
||||
ellipse_part->set_size(dim * 2, dim);
|
||||
ellipse_part->set_padding(1);
|
||||
ellipse_part->set_pos(0, 0);
|
||||
ellipse_part->border_radius = (dim - 2) / 2;
|
||||
ellipse_part->border_radius = (dim - 4) / 2; // Avoid perfect capsule shape since we want a border and perfect capsules can have a false border along the midline due to subgroup shenanigans
|
||||
|
||||
circle_part->set_size(dim, dim);
|
||||
circle_part->set_padding(4);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user