5dcbe222c9
The stage files' shadow constants (shadowMapResolution, shadowDistance, shadowDistanceRenderMul, shadowIntervalSize, sunPathRotation, shadowMapFov, shadowNearPlane, shadowFarPlane, shadowHardwareFiltering[0|1] and the shadowcolor0/1 Format, Clear and ClearColor) are read into Config::shadow (spec 6.3, 7.1). The shadow matrices are no longer a placeholder (OQ-6): the camera looks from the shadow light, sits 128 blocks toward it from a point that moves in steps of shadowIntervalSize along the shadow view's own axes, and projects orthographically over shadowDistance each side (or in perspective with shadowMapFov), between shadowNearPlane and shadowFarPlane. sunPathRotation turns the sun and moon's path about the world's X axis: sunPosition, moonPosition, shadowLightPosition and the shadow camera follow it, and so do the sun, moon and stars a pack's gbuffers_skytextured and gbuffers_skybasic draw. Clean-room: implemented from cleanroom/shader-packs-spec.md revision 1, sections 6.3 and 7.1; no other loader's code read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>