Lab/Three.js

Black Hole

Schwarzschild black hole simulation — I wrote custom GLSL shaders for the gravitational lensing, bending background star light using the geodesic equation from general relativity rather than the typical post-process distortion trick. The accretion disk uses volumetric ray marching with Doppler shift coloring for physically-motivated visuals.

How to interactWatch the gravitational lensingMove your cursor around the singularityObserve light bending near the event horizon
Tech:Three.js