mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-28 03:41:41 +00:00
Merge branch 'cursor_trail' of https://github.com/jinhwanlazy/kitty
This commit is contained in:
commit
bc612a5437
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ void main() {
|
|||
float opacity = trail_opacity;
|
||||
// Dont render if fragment is within cursor area
|
||||
float in_x = step(cursor_edge_x[0], frag_pos.x) * step(frag_pos.x, cursor_edge_x[1]);
|
||||
float in_y = step(cursor_edge_y[0], frag_pos.y) * step(frag_pos.y, cursor_edge_y[1]);
|
||||
float in_y = step(cursor_edge_y[1], frag_pos.y) * step(frag_pos.y, cursor_edge_y[0]);
|
||||
opacity *= 1.0f - in_x * in_y;
|
||||
final_color = vec4(trail_color, opacity);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue