This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Original version by KroneCorylus, ref https://github.com/KroneCorylus/shader-playground/blob/main/shaders/cursor_smear_fade.glsl | |
| // | |
| // Modifications: | |
| // - Base the cursor trail color on the current cursor color, which can be configured | |
| // in ghostty's config using `cursor-color`, ref https://ghostty.org/docs/config/reference#cursor-color | |
| // - Cursor trail is partially transparent, which gives a nice fade effect | |
| // - Cursor trail's maximum opacity is configurable using `TRAIL_MAX_OPACITY` | |
| // |