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
Binary file not shown.
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
@@ -191,6 +191,18 @@ export const REFERENCE_SCENES = Object.freeze([
|
||||
mode: '3d',
|
||||
style: { kind: 'solid', color: '#ff3b30' },
|
||||
},
|
||||
{
|
||||
// A bright core inside a dark edge 2 px wide on each side.
|
||||
id: 'outlined',
|
||||
positions: row(800),
|
||||
widthPx: 8,
|
||||
mode: '3d',
|
||||
style: {
|
||||
kind: 'solid',
|
||||
color: '#30d158',
|
||||
outline: { color: '#000000', widthPx: 2 },
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'glow',
|
||||
positions: row(200),
|
||||
|
||||
Reference in new issue
Block a user