Settle imagery, world data and sky capabilities in the renderer contract

- setFrames takes a timed source (URL frames, or video tiles in
  segments) on the scene clock by default or its own; frameReady fires
  once each time the shown frame is drawn.
- drapeOn is 'surface' | 'objects' | 'all' plus lit; imagery.host() and
  onHostChange go, and the drape rule the app derives is written out.
- ImagerySpec.fetchTile answers bytes, missing or defer on every
  renderer; tileTransform, admit and canvas imagery need imageHooks, and
  add() throws for them without it.
- Generic names for the default renderer's world data: worldDataToken,
  the photoreal fallback route, and world terrain and imagery.
- clouds and water capabilities, with globe.setClouds and setWater.
This commit is contained in:
Sameh Khamis committed 2026-11-05 13:26:14 -08:00
1 parent a7aeeb558a
commit 3dc79515bb
7 files changed
+360 -52

No files matched your search

+6 -2
View File
@@ -23,6 +23,9 @@ export const CAPABILITIES = Object.freeze([
'splitSwipe',
'imageryFrames',
'surfaceShading',
'clouds',
'water',
'imageHooks',
'screenModulation',
'gpuTiming',
'pickPosition',
@@ -138,8 +141,6 @@ export const PORTS = deepFreeze({
'imagery',
'imagery.add',
'imagery.list',
'imagery.host',
'imagery.onHostChange',
'sky',
'sky.get',
'sky.set',
@@ -147,6 +148,8 @@ export const PORTS = deepFreeze({
'on',
),
['setSurfaceShading', 'surfaceShading'],
['setClouds', 'clouds'],
['setWater', 'water'],
['imagery.getSplit', 'splitSwipe'],
['imagery.setSplit', 'splitSwipe'],
]),
@@ -293,6 +296,7 @@ export const PORTS = deepFreeze({
'show',
'split',
'drapeOn',
'lit',
'on',
'raise',
'lower',