← Notebook
Ashes of the Unbound Finding 1 minute read

Finding the Wrong Receiver Point in the Lighting Shader

SF-ISSUE-012 survived valid inputs and valid ray math because projected depth reconstructed a point that was not on the receiver sphere.

The source and receiver uniforms checked out. The occlusion equation checked out. Selene still blacked out.

Projected celestial SceneDepth was reconstructing a convenient screen proxy, not a physical point on the receiver. The shader then evaluated correct geometry from that fictional position and correctly produced the wrong result.

Snapping the candidate back to the known sphere before testing occlusion restored the physical contract. The debugging lesson is painfully general: validating parameters and formulas is not enough when the spatial sample itself may be invented.