
I created this using Flutter and custom Fragment Shaders (GLSL).
It uses Volumetric Ray Marching to render the accretion disk and implements relativistic gravitational lensing to bend light around the event horizon. The disk density uses a Gaussian falloff to avoid artifacts, and the starfield is mapped spherically to stabilize the background.
Edit:
For those who are interested: I made a newer version with the doppler color shift applied. You can watch it here: https://youtube.com/shorts/ds39YTcRMxM?si=PBPslUjExDTnCw4c
You can look at it yourself in Visual Studio Code, by copying the code from here: https://pastebin.com/u/InfiniteNeonAbyss/1/7ThPFCVX
I created this simulation of a black hole solely with Gemini 3
byu/Informal-Speed1196 inGeminiAI
