mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
gpu: Fix shadows even more
Math is hard. But this time, it comes with a test!
This commit is contained in:
parent
65e02a3bae
commit
9f71528a05
@ -115,7 +115,7 @@ blur_corner (vec2 p,
|
||||
r /= _sigma;
|
||||
|
||||
if (min (p.x, p.y) <= -2.95 ||
|
||||
max (p.x, p.y) >= 2.95)
|
||||
max (p.x - r.x, p.y - r.y) >= 2.95)
|
||||
return 0.0;
|
||||
|
||||
float result = 0.0;
|
||||
|
@ -0,0 +1,7 @@
|
||||
clip {
|
||||
clip: 0 0 25 25;
|
||||
child: outset-shadow {
|
||||
blur: 1;
|
||||
outline: 0 0 100 100 / 100 0 100 0;
|
||||
}
|
||||
}
|
BIN
testsuite/gsk/compare/outset-shadow-corner-blur-normal.png
Normal file
BIN
testsuite/gsk/compare/outset-shadow-corner-blur-normal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 111 B |
@ -121,6 +121,7 @@ compare_render_tests = [
|
||||
'opacity-overlapping-children',
|
||||
'outset-shadow-corner-blur',
|
||||
'outset-shadow-corner-blur-huge-nocairo-nogl',
|
||||
'outset-shadow-corner-blur-normal',
|
||||
'outset-shadow-corner-blur-tiny',
|
||||
'outset_shadow_offset_both',
|
||||
'outset_shadow_offset_x',
|
||||
|
Loading…
Reference in New Issue
Block a user