From d543d2fafdb487a5250fd38828a781820f40a8ab Mon Sep 17 00:00:00 2001 From: Rick Choi Date: Tue, 24 Dec 2024 19:45:10 +0900 Subject: [PATCH] fix bug that character under cursor trail not visible --- kitty/trail_fragment.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/trail_fragment.glsl b/kitty/trail_fragment.glsl index 31d9523e6..099fc35e3 100644 --- a/kitty/trail_fragment.glsl +++ b/kitty/trail_fragment.glsl @@ -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); }