mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-09 12:54:01 +00:00
Keep Navara satellite daylight through orbital zoom
This commit is contained in:
1 parent
3cbc17a926
commit
0d15e80e28
2 files changed
+19
-1
No files matched your search
@@ -205,6 +205,25 @@ try {
|
|||||||
'data-terrain-daylight',
|
'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.$eval('[data-stack-id="osm"]', (el) => el.click());
|
||||||
await page.waitForFunction(
|
await page.waitForFunction(
|
||||||
() =>
|
() =>
|
||||||
|
|||||||
@@ -176,7 +176,6 @@ export async function createNavaraGlobe({
|
|||||||
const placed = readCameraPlace(camera);
|
const placed = readCameraPlace(camera);
|
||||||
const landscape =
|
const landscape =
|
||||||
placed &&
|
placed &&
|
||||||
lookCarto.height < 100_000 &&
|
|
||||||
plan.globeLighting &&
|
plan.globeLighting &&
|
||||||
automaticLandscape &&
|
automaticLandscape &&
|
||||||
(engine.maps.baseKind === 'sentinel2' ||
|
(engine.maps.baseKind === 'sentinel2' ||
|
||||||
|
|||||||
Reference in new issue
Block a user