mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
d249ef24eb
commit
8122199887
3 files changed
+8
-1
No files matched your search
@@ -126,6 +126,10 @@ optional, so a renderer written before it still conforms:
|
||||
[The application and its renderer](#the-application-and-its-renderer).
|
||||
- `frame.renderNow()` throws when the frame fails to draw.
|
||||
|
||||
The Cesium port lists `modelAtmosphere`: Cesium scatters drawn models
|
||||
through the atmosphere in the same stage as its distance fog, so models take
|
||||
it while `globe.sky`'s `fog` is on.
|
||||
|
||||
The Cesium port lists `followAutodetect`: an `autodetect` follow is
|
||||
Cesium's own AUTODETECT tracking frame, east-north-up on a still or slow
|
||||
target and an orbit frame (x along the inertial motion, z up) on a fast
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 }), [
|
||||
|
||||
Reference in new issue
Block a user