Merge main and switch Cesium and Navara in place through Vue

Preserve the camera, map source and layer selection across engine sessions. Restore the previous engine if startup fails and retain local history navigation.
This commit is contained in:
German Khokhlov committed 2026-11-02 13:10:36 +04:00
commit b8f4d097c4
1691 files changed
+225876 -41594

No files matched your search

+3
View File
@@ -1,3 +1,4 @@
import { AIRCRAFT_ENVIRONMENT_MAP_OPTIONS } from '../../../data/aircraftModelLighting.js';
// The aircraft renderer on Cesium (contract: ./contract.js): the Cesium
// objects the aircraft layers used to build themselves, moved here one for
// one — the fleet BillboardCollection and its sprite-order slot, the model
@@ -209,6 +210,7 @@ export function createAircraftCesiumRenderer({
loadModel({
url,
asynchronous: false,
environmentMapOptions: AIRCRAFT_ENVIRONMENT_MAP_OPTIONS,
minimumPixelSize,
scale,
color,
@@ -229,6 +231,7 @@ export function createAircraftCesiumRenderer({
loadModel({
url,
asynchronous: false,
environmentMapOptions: AIRCRAFT_ENVIRONMENT_MAP_OPTIONS,
minimumPixelSize,
scale,
color,
@@ -154,6 +154,8 @@ test('model loads carry the layer spec; the IR boost loads an UNLIT model', asyn
}
assert.equal(calls.length, 3);
for (const call of calls) assert.equal(call.asynchronous, false);
assert.deepEqual(calls[0].environmentMapOptions, { enabled: false });
assert.deepEqual(calls[1].environmentMapOptions, { enabled: false });
assert.equal(calls[0].colorBlendMode, Cesium.ColorBlendMode.MIX);
assert.equal(calls[0].colorBlendAmount, 0.94);
assert.equal(calls[0].customShader, undefined);