Skip to content

Commit

Permalink
Merge branch 'cursor_trail' of https://github.com/jinhwanlazy/kitty
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Dec 24, 2024
2 parents 50e5b33 + d543d2f commit bc612a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kitty/trail_fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit bc612a5

Please sign in to comment.