Merge migration/phase2-engine (4aaf9746) into migration/phase3-layers

The phase-2 review fixes: look internals in internals.js, the groundFloor
resample throttle, tile height selection, the sharpen mirror, QA tile
cache limits, engine.groundFloor diagnostics. In navara/index.js both
sides are kept: the look gets internals.js's luminance uniforms and reads
the sun's time from the engine clock's frame time, so engine.clock stays
the one time source for the sun.
This commit is contained in:
German Khokhlov committed 2026-10-16 15:15:24 +04:00
commit 7c7422e281
21 files changed
+692 -291

No files matched your search

@@ -400,3 +400,10 @@ test('the floor does not fight flights or a lookAt target', () => {
near(heightOf(engine), 130, 1e-6, 'lifted once released');
engine.destroy();
});
test('the ground floor reports its own ground and margin (diagnostics, not contract)', () => {
const { engine } = setup();
assert.equal(typeof engine.groundFloor.ground, 'function');
assert.equal(engine.groundFloor.margin, 30);
assert.equal(engine.groundFloor.ground(), undefined, 'nothing sampled yet');
});