feat(viewer): the black hole's light bent as a real one's #53
Loading…
Reference in a new issue
No description provided.
Delete branch "black-hole"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The black hole was a black ball, a ring and a cloud of dots. Now it's drawn as light would
show it: a shader traces each pixel's ray from the camera past the hole, bent by its gravity
(Schwarzschild photon orbits, integrated in steps), until it falls in or crosses the disk.
ring at its edge (light that went round once more).
pictures; the disk is tilted in the shader so the usual view sees it nearly edge-on.
hotter inside, redder out, streaked, turning at Kepler's pace.
and the disk flares.
Up to 220 steps per pixel, only where the model covers the screen. Worth a look on a phone for
the frame rate.
Picture and
docs/user/models.mdupdated; viewer tests pass (22 of 22).