Skip to content
Yarry· @aiiii498 · X·· 6 d agoAI score62

Open-source black hole ray-tracing shader ghostty-blackhole: demo and engine porting tips

Editorial summary

The GitHub repo s0xDk/ghostty-blackhole offers an MIT-licensed single-file black hole ray-tracing shader, blackhole.glsl, that solves light bending in real time per pixel in a fragment shader using the Schwarzschild metric from general relativity; it has 1,710 stars.

Source: Yarry · x.com