top | item 46039176

(no title)

catskull | 3 months ago

I have ghostty set up with this “starfield” shader: https://github.com/0xhckr/ghostty-shaders/blob/main/starfiel...

I also have it set up to do adaptive theme, so in light mode the galaxy is mostly just a little noise on the black text but in dark mode it’s like I’m piloting a space ship. Highly recommend.

I also documented a few other shaders on my blog here: https://catskull.net/fun-with-ghostty-shaders.html

Edit: I use the "starfield" shader, not the "galaxy" shader. Doh!

discuss

order

echo_time|3 months ago

This is fantastic - but I encountered something strange. I was searching `ghostty per window shader` and your site came up as the first hit. Excellent - however, this was the text under the link:

Fun with Ghostty Shaders 22 Feb 2025 — Ghostty doesn't directly support shaders, but a repo with shaders can be cloned to ~/.config/ghostty/shaders. Examples include 'drunkard+retro- ...

Now, no where in the text on the site does it say this - so did google just wrongly summarize and put it in as "website text". To be clear, this isn't an AI overview - its in the main list of links! Maybe this has been happening and i just missed it but its absurd! It doesn't even fit with the text! Thanks for the resource, again, had a lot of fun with that.

catskull|3 months ago

What the crap is going on with this. Is Google just blindly making stuff up these days? Why would it show some preview text that doesn’t exist on the page.

phatskat|3 months ago

Thanks for reminding me that ghostty supports shaders! Now to find a good one with scanlines…

velcrovan|3 months ago

If only the “just snow” one would have had the snow floating down (instead of, inexplicably, up)!

keyle|3 months ago

I added DIRECTION, and use it agains the `q`. 0.25 makes them fall slowly.

    #define DIRECTION 0.25

    // usage:
    vec2 q = DIRECTION * uv * (1.0 + fi * DEPTH);
be sure to tweak the rest, it's fun!

phatskat|3 months ago

The shader is pretty small, I bet a little fiddling with changing minuses to plus signs would fix that right up (or down)!

volemo|3 months ago

Simply rotate your monitor. /j

nemomarx|3 months ago

oh that water one is cute. makes me think of old gnome effects? I wonder how distracting it is in practice

lexicality|3 months ago

Bit disappointed that Galaxy is the only one without a preview, what does it look like?