c965aad8d3
The shadow program now draws the world's terrain from the light's view. The shadow pass culls its own section list against the shadow camera's frustum (render distance, capped by shadowDistanceRenderMul), nearest the light first, and draws only the faces toward the light. Its draws go by arena page within 64-block bands from the light, as the camera's solid draws do, so the flat path draws them in about ten calls per list instead of one per page change (over a thousand with BSL). Its draws follow the camera's translucent draws in the same instance and indirect buffers, so the flat path gives them calls of their own. Sections never sorted for the camera are sorted once so their translucent indices are valid. The frame's first shadow pass clears the shadow map and shadowcolor buffers as it begins, instead of a separate pass that loads and stores them all; the translucent shadow pass is timed under its own label. Without a pack nothing changes: the shadow lists are empty and the terrain stays one draw call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>