mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Draw the Global Context range ring and its pulses through the draw port
The ring, its sonar fronts and the band behind them leave Cesium: the
ring and each front are one solid line with an outline, the band is one
flat unpickable ellipse at the rim filled with a canvas painted from the
pulse radii. rangeRingCesium.js goes, and the Cesium allow-list is empty.
Solid lines take an optional outline ({color, widthPx}, inside the
line's width on each side), drawn in the line's own pass so a
translucent halo never darkens where it meets the core; both colours
change in place, and outlined lines never settle into the static batch.
An unclamped image fill takes a new canvas in place: copied into its
texture when the size is the same.
A parked view steps the pulses from the 80 ms timer before it asks for
the frame that draws them, so it draws one frame a step; frames the
camera moves in, or held drawing, step them every frame, and the band is
painted at most every 80 ms. The lines reference scene gains an outlined
line.
This commit is contained in:
1 parent
c8346c9fda
commit
74d6d97b29
16 files changed
+1379
-1191
No files matched your search
@@ -154,14 +154,8 @@ back to Cesium. Both lists only ever shrink.
|
||||
- `src/render/cesiumAllowList.json` lists the files outside the Cesium
|
||||
adapter (`src/render/cesium/`) that may still import or be handed Cesium
|
||||
(`src/render/noCesiumOutsideRender.test.mjs`). A file leaves the list
|
||||
when it no longer drives Cesium at all; nothing is added. The list holds
|
||||
one file, `src/layers/awareness/rangeRingCesium.js`: the Global Context
|
||||
range ring and its sonar pulses, a disc whose fill is computed per pixel
|
||||
from values set each frame and an outlined line whose opacity changes
|
||||
without a rebuild, neither of which the draw port can draw yet. It draws
|
||||
only on a viewer with a Cesium primitive collection; on any other
|
||||
renderer the layer draws the ring without pulses through the draw port.
|
||||
It leaves the list when the draw port can draw both. Two files name
|
||||
when it no longer drives Cesium at all; nothing is added. The list is
|
||||
empty: no file outside the adapter reaches Cesium. Two files name
|
||||
the adapter by design and are not on it: the application scene
|
||||
(`src/app/scene.js`), the composition root that picks the Cesium renderer,
|
||||
may import `src/render/cesium/application.js` and nothing else of the
|
||||
|
||||
Reference in new issue
Block a user