Files
totk-pc-recomp/recomp
shinodanpenandClaude 051ec978f9 Make shadow_range move the sun cascades on 1.4.3 by scaling the boundaries the shadow controller writes each frame (#606)
The cascade set loads the four constructor defaults of the depth shadow parameters (main+0x6fabb8, 0x6fac40,
0x6facc8, 0x6fad4c) from page +64..+76. In Hyrule Field that does not move the sun's cascades: frame dumps of the
0.4.1 release at shadow_range 100 and 300 show the same draws per layer and the same cascade transforms, though the
log names the new distances. As on 1.2.1, the shadow controller sets bit 1 of the scene's depth shadow flags when it
starts (main+0xb74494), the per-view update skips its copy of the parameters while the bit is set (main+0x567f6c), and
main+0x68318c writes the boundaries every frame.

Two more sites scale d[1..n] where the controller stores them (main+0x6836ec, main+0x683740) by page +64 over 20,
i.e. shadow_range / 100; d[0], the first cascade's start, stays. The four constructor sites stay for the path where
bit 1 is clear. Off at shadow_range = 100.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-16 21:35:45 +00:00
..