A coral reef grows upward only as fast as light allows, and light fades with depth. Set the maximum accretion rate, living coral cover, water clarity, the rate and acceleration of sea-level rise and the starting depth to see whether the reef keeps up, catches up or drowns, and find the tipping depth beyond which it cannot recover. Blender-built reef, corals and fish with numerical checks including a threshold bisection and a linear-instability test.