Files
totk-pc-recomp/recomp
shinodanpenandClaude 7ff62786c3 Make shadow_range move the sun cascades on 1.2.1 by scaling the boundaries the shadow controller writes each frame (#606)
On 1.2.1 the constructor values of depth_shadow_near_0_0..3 (main+0x114c2f8..) are only defaults: the shadow
controller sets bit 1 of the scene's depth shadow flags when it starts (main+0xc7b0e8), the per-view update skips its
copy of those parameters while the bit is set (main+0xa2cff4), and main+0xcebdf4 writes the cascade boundaries itself
every frame. The cascade set scales d[1..n] where they are stored (main+0xcec314, main+0xcec36c) by page +64 over 20,
i.e. shadow_range / 100; d[0], the first cascade's start, stays. Off at shadow_range = 100.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-16 20:46:11 +00:00
..