Traffic surface keys and readiness through the globe port; draped lines fall back to overlay where the scene cannot drape

The traffic layer keys its cached road heights by the globe port's
surfaceVersion() and waits on isSettled('surface') instead of reading the
scene through render/cesium/surfaceState.js, which is gone. Heat-lines are
always asked for draped; the layer no longer checks whether the scene can
drape and drops them. The traffic layer and application/sources no longer
reach Cesium, and src/layers/traffic/rendering.js leaves the Cesium list.

Where the Cesium renderer cannot drape (no depth textures), its draw port
now draws every draped line over the surface, as the contract asks: along
the surface's curve between its positions, in its colour where the surface
hides it, hidden past the horizon (tested along its arc, shown in 2D). A
segmented line runs from its first shown segment to its last, in its style
colour. A line whose positions hold what they held takes a new colour in
place, so pulsing jam lines build nothing per frame; one that moves is
built anew alone.
This commit is contained in:
Sameh Khamis committed 2026-11-09 03:10:29 -08:00
1 parent f53f691a80
commit 26633106fc
15 files changed
+543 -169

No files matched your search

+7
View File
@@ -126,6 +126,13 @@ const DRAW_FROM_CALLER = new Set([
// Its layer draws and reads the view through the ports alone, and its mesh
// floor sampler asks the camera, globe and query ports.
'./layers/transit/standalone',
// Its dots and heat-lines draw through `drawOf`; it reads the eye, the
// surface (its identity and whether it has loaded) and heights through
// the camera, globe and query ports.
'./layers/traffic',
// It configures the sources of layers, the traffic layer's among them,
// that draw and read the surface through the ports alone.
'./application/sources',
]);
/**