mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
gpui/blade: add alpha handling for non-rounded quads (#11461)
Fixes https://github.com/zed-industries/zed/pull/10973#issuecomment-2096586316 Release Notes: - N/A
This commit is contained in:
parent
da6a6ec36b
commit
d6a6330419
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ fn fs_quad(input: QuadVarying) -> @location(0) vec4<f32> {
|
||||||
quad.corner_radii.bottom_right == 0.0 && quad.border_widths.top == 0.0 &&
|
quad.corner_radii.bottom_right == 0.0 && quad.border_widths.top == 0.0 &&
|
||||||
quad.border_widths.left == 0.0 && quad.border_widths.right == 0.0 &&
|
quad.border_widths.left == 0.0 && quad.border_widths.right == 0.0 &&
|
||||||
quad.border_widths.bottom == 0.0) {
|
quad.border_widths.bottom == 0.0) {
|
||||||
return input.background_color;
|
return blend_color(input.background_color, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
let half_size = quad.bounds.size / 2.0;
|
let half_size = quad.bounds.size / 2.0;
|
||||||
|
|
Loading…
Reference in a new issue