mirror of
https://github.com/alacritty/alacritty
synced 2024-10-14 11:42:28 +00:00
parent
eefce4e9af
commit
c35ccaf9b5
|
@ -37,8 +37,9 @@ void main()
|
|||
* cos(float(x) * 2 * PI / float(cellWidth))
|
||||
+ cellHeight - undercurlPosition;
|
||||
|
||||
float undercurl_top = undercurl + undercurlThickness / 2.;
|
||||
float undercurl_bottom = undercurl - undercurlThickness / 2.;
|
||||
// We subtract one, since curve is already 1px thick.
|
||||
float undercurl_top = undercurl + max((undercurlThickness - 1), 0);
|
||||
float undercurl_bottom = undercurl - max((undercurlThickness - 1), 0);
|
||||
|
||||
|
||||
// Compute resulted alpha based on distance from `gl_FragCoord.y` to the
|
||||
|
|
Loading…
Reference in a new issue