Draw quads and meshes through the Cesium draw port

The Cesium draw port now makes quads sets (a posed, textured plane with its
outline, drawn as a plane entity with a transparent image material draws it)
and meshes sets (triangles in the east-north-up frame at an origin, flat and
two-sided or lit and closed). Quads change in place as they move, resize,
fade or take a new canvas; a video quad keeps frames coming while it plays
and gets a new material when its size or source kind changes. Mesh vertices
are placed in the Earth-fixed frame, so Cesium can project them for its 2D
views. The capabilities list both kinds.
This commit is contained in:
Sameh Khamis committed 2026-11-08 07:23:54 -08:00
1 parent fa762f808e
commit 393f1686f2
7 files changed
+871 -7

No files matched your search

+5 -4
View File
@@ -24,15 +24,16 @@ test('capabilities follow what the scene supports', () => {
'imageHooks',
];
const globe = { show: true };
assert.deepEqual(cesiumCapabilities({}), ['models', ...effects]);
const draw = ['models', 'quads', 'meshes'];
assert.deepEqual(cesiumCapabilities({}), [...draw, ...effects]);
// A scene with a globe reads its visibility back.
assert.deepEqual(cesiumCapabilities({ globe }), [
'models',
...draw,
...effects,
'globeVisibility',
]);
assert.deepEqual(cesiumCapabilities({ pickPositionSupported: true }), [
'models',
...draw,
...effects,
'pickPosition',
]);
@@ -43,7 +44,7 @@ test('capabilities follow what the scene supports', () => {
sampleHeightSupported: true,
}),
[
'models',
...draw,
...effects,
'globeVisibility',
'pickPosition',