Show map colours on Navara as they are, in every view and style

Navara lit the map imagery a second time: from space its atmosphere
irradiance multiplied the map colours by the sun, so the far side of the
globe went black in wide views; up close the aerial-perspective haze
washed the imagery out, and an inspection exposure of 10 and a threefold
atmosphere luminance fed the sensor styles (NVG, FLIR, CRT) colours far
brighter than Cesium's. Map textures already carry their lighting, so the
atmosphere now stays in the sky and clouds, the exposure stays at 1 and
an active style bypasses filmic tone mapping.
This commit is contained in:
German Khokhlov committed 2026-11-12 00:42:17 +04:00
1 parent a9b703f3ea
commit 667190f815
7 files changed
+193 -267

No files matched your search

+25
View File
@@ -260,3 +260,28 @@ test('the styles port adds the pass once, hides it at 0 and fades the stars with
assert.equal(view.deleted, 1);
assert.deepEqual(dimmed, [0.5, 0, 0.9, 0], 'destroy brings the stars back');
});
test('display tone mapping spans a crossfade and restores only after the last style leaves', () => {
const active = [];
const port = createStylesPort(fakeView(), {
shaders: STYLES,
onActiveChange: (value) => active.push(value),
});
const set = (name, intensity) => port.set(name, { intensity, uniforms: {} });
set('retro', 0.001);
assert.deepEqual(active, [], 'below the drawing threshold');
set('retro', 0.1);
set('surveillance', 0.5);
set('retro', 0);
set('thermal', 0.5);
set('surveillance', 0);
set('thermal', 1);
assert.deepEqual(active, [true], 'uniform changes never recompile the look');
set('thermal', 0);
assert.deepEqual(active, [true, false]);
set('noir', 1);
port.destroy();
assert.deepEqual(active, [true, false, true, false]);
port.destroy();
assert.equal(active.length, 4, 'destroy restores once');
});