Directional Depth Program
Depth-only caster program for the cascaded sun-shadow pipeline. Rasterises caster geometry through each cascade's orthographic light projection; the cascade framebuffer's DEPTH_COMPONENT texture receives the hardware depth value, which receivers later sample and compare directly. There is no meaningful colour output — the caller masks colour writes off for the whole pass.
Because the stored value is true hardware depth, glPolygonOffset applies slope-scaled bias in the caster pass itself — steeply-lit triangles get proportionally more bias, which a receiver-side constant can never do without erasing contact shadows.