gitmyhub

ghostty-shaders

GLSL ★ 21 updated 25d ago

a repo of my custom ghostyy shaders!

Two animated GLSL visual effects for the Ghostty terminal emulator: pixel-art snowflakes and twinkling plus-shaped stars that draw over your terminal without covering the text.

GLSLsetup: easycomplexity 1/5

This repository contains two custom visual effects for Ghostty, a terminal emulator. The effects are written in GLSL, a language used to write programs that run on the graphics card and produce visual output. One shader adds animated pixel-art snowflakes that drift and sway across the terminal window. The other adds sparse twinkling plus-shaped stars. Both effects draw on top of your terminal content without covering the text, so your commands and output remain readable underneath.

Installation involves copying the .glsl files into Ghostty's shaders directory, then adding two lines to your Ghostty config file pointing to whichever shader you want and telling Ghostty to animate it. Switching between them means changing one line and reloading the config.

Both shaders have a set of adjustable values near the top of the file. For the snow effect you can control things like how many parallax layers there are, how fast the flakes fall, the diagonal drift strength, and how chunky the pixel grid looks. The stars shader has similar controls for density, twinkle speed, and layer count.

The snow shader is based on a 2013 shader by Andrew Baldwin, reimplemented in pixel-art style by Eli Saliman. The project is released under CC BY-NC-SA 3.0, which allows sharing and adapting the work for non-commercial purposes with attribution, under the same license.

Where it fits