Keep Navara satellite daylight through orbital zoom

This commit is contained in:
German Khokhlov committed 2026-11-02 17:11:42 +04:00
1 parent 3cbc17a926
commit 0d15e80e28
2 files changed
+19 -1

No files matched your search

+19
View File
@@ -205,6 +205,25 @@ try {
'data-terrain-daylight',
),
);
// Zooming out on the satellite map must keep the same inspection sun.
assert.ok(
await page.evaluate(async () => {
const { engine } = window.__godsEyeView;
engine.camera.zoomOut(2_000_000);
await new Promise((resolve) => {
const remove = engine.frames.postRender.addEventListener(() => {
remove();
resolve();
});
engine.render.request('qa-orbital-daylight');
});
return (
engine.camera.height() > 1_500_000 &&
engine.host.container.hasAttribute('data-terrain-daylight')
);
}),
'the orbital frame keeps daylight on the inspected globe',
);
await page.$eval('[data-stack-id="osm"]', (el) => el.click());
await page.waitForFunction(
() =>
-1
View File
@@ -176,7 +176,6 @@ export async function createNavaraGlobe({
const placed = readCameraPlace(camera);
const landscape =
placed &&
lookCarto.height < 100_000 &&
plan.globeLighting &&
automaticLandscape &&
(engine.maps.baseKind === 'sentinel2' ||