The Cesium renderer lists modelAtmosphere

Cesium's models already take the atmosphere's scattering, in the stage that
draws distance fog; the capability now says so, and the contract doc says
it follows the sky's fog setting there.
This commit is contained in:
Sameh Khamis committed 2026-11-11 15:56:50 -08:00
1 parent d249ef24eb
commit 8122199887
3 files changed
+8 -1

No files matched your search

+3
View File
@@ -64,6 +64,9 @@ const GLOBE_CAPABILITIES = [
export function cesiumCapabilities(scene, only) {
const all = [
'models',
// Cesium scatters drawn models through the atmosphere wherever the
// scene draws fog (its models' atmosphere stage).
'modelAtmosphere',
'quads',
'meshes',
// Raster shells; other field kinds are refused.
+1 -1
View File
@@ -30,7 +30,7 @@ test('capabilities follow what the scene supports', () => {
'surfaceShading',
];
const globe = { show: true };
const draw = ['models', 'quads', 'meshes', 'fields'];
const draw = ['models', 'modelAtmosphere', 'quads', 'meshes', 'fields'];
assert.deepEqual(cesiumCapabilities({}), [...draw, ...effects]);
// A scene with a globe reads its visibility back.
assert.deepEqual(cesiumCapabilities({ globe }), [