fe6ae937ef
A Java pack's shadow program (shadow_cutout, shadow or shadow_solid for the solid layer, shadow_water or shadow for the translucent one) draws Horizon's terrain from the light after begin, as Iris's ShadowRenderer: - shadowModelView and shadowProjection are Iris's ShadowMatrices, with the pack's shadowMapResolution, shadowDistance, near and far planes, shadowIntervalSize and sunPathRotation; shadow programs get them as their model view and projection. - The renderer picks every resident section inside the light's box (no cave culling, no face culling) and draws it instanced, solid then translucent, with origins after the camera's. - shadowtex0 holds everything, shadowtex1 the depth before translucent terrain, bound as depth textures for comparisons and as float copies for plain reads; shadowcolor0..7 take the pack's formats and clears (white by default). A shadow program that fails to compile leaves the pack without its shadow map, with a warning; its terrain programs still run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>