scene: Day sky bound was 1.2e-6 low; refine to 1e-6 degrees and check both directions
Some checks failed
Build pull request / Build pull request (pull_request) Failing after 44s

Day lightest 0.92805 -> 0.928052 (true terrain peak 0.92805117...). The compass
refinement now halves to 5e-7 degrees; the drift test checks the constant against
the refined computation and an independent golden-section sweep, exact to
[extreme, extreme + 1e-6).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-09 23:28:55 +00:00
commit eafa3eda79
3 changed files with 63 additions and 7 deletions

View file

@ -121,7 +121,7 @@ export function terrainDrawn(state: SkyState): Range {
});
const refine = (from: Point, sign: 1 | -1) => {
let best = from;
for (let step = 1; step > 0.0005; step /= 2) {
for (let step = 1; step > 5e-7; step /= 2) {
let improved = true;
while (improved) {
const cur = best;