Commit ece75f6
Clamp the freeze-mode sun to the tropics, not the poles
The real sun never passes over the geographic poles — it stays within
the tropical band of ±23.45° latitude (the obliquity of the ecliptic).
Freeze mode was clamping the user-driven sun delta to ±90°, which let
the user park the sun directly over the North Pole. Looked wrong.
Fix: the effective subsolar latitude (live + Δ) is now clamped to
±23.45°. The Δ value itself stays free so the user can push past the
boundary and pull back without surprise; the rendering simply pins to
the tropic line when the sum exceeds it.
The earth's axial tilt itself is, and always was, handled implicitly
via sun::subsolar_point(), which returns the real ecliptic declination
for the given date. Mathematically equivalent to a tilted-axis
earth with a fixed-direction sun.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 44a87d2 commit ece75f6
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
0 commit comments