Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!



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.


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.


Maybe they noticed that everybody ignores/downvotes/hates/hides the AI overviews, so the next attempt to force people to see them is to replace descriptions and previews with generated summaries?


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


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


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!


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


Simply rotate your monitor. /j


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


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


an image is available in the PR where it was added: https://github.com/0xhckr/ghostty-shaders/pull/30


lol I'm smart apparently. It's not the "galaxy" shader, it's the "starfield" shader! I should double check before commenting I guess.

https://github.com/0xhckr/ghostty-shaders/blob/main/starfiel...

I'm not sure what "galaxy" looks like but it might not have worked or shown nothing.


Oh, that one's really pretty! I actually went to check if wezterm supported shaders after seeing the preview on your site, but tragically it doesn't.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: