mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Draw the context rim through the renderer's draw port
The Contacts layer's 250 km rim is now an outline-only ellipse in a draw set of its own, taken from drawOf(viewer) when it is first drawn: the same colour, height and radius, moved only after the subject travels 250 m, cleared with the subject and disposed with the layer. A rim drawn on another viewer is redrawn on the current one. The Cesium draw port draws the outlines of ellipses it does not clamp as the entities did, with an outline geometry. The layer's positions are plain ECEF from src/geo rather than Cesium objects, the compass reads the camera through its port's pose, and its flights go through cameraOf from the renderer bridge. Its four files leave the Cesium allow-list; a caller handing the layer a viewer of its own loads ./render/cesium/unbound first, as for earthquakes.
This commit is contained in:
1 parent
6e23d2aac9
commit
df1143485a
14 files changed
+272
-154
No files matched your search
@@ -1,20 +1,6 @@
|
||||
import * as Cesium from 'cesium';
|
||||
|
||||
export function createState({ services }) {
|
||||
const state = {};
|
||||
|
||||
state.DIRECTION_SCRATCH = Array.from(
|
||||
{ length: 3 },
|
||||
() => new Cesium.Cartesian3(),
|
||||
);
|
||||
|
||||
state.SUBJECT_CARTOGRAPHIC_SCRATCH = new Cesium.Cartographic();
|
||||
|
||||
state.TARGET_CARTOGRAPHIC_SCRATCH = Array.from(
|
||||
{ length: 3 },
|
||||
() => new Cesium.Cartographic(),
|
||||
);
|
||||
|
||||
Object.assign(state, {
|
||||
viewer: null,
|
||||
dataManager: null,
|
||||
|
||||
Reference in new issue
Block a user