mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
- Radio: stations, clusters, the selection and its brackets are point and sprite sets; clusters come from the layer's engine-neutral screen clusterer with Cesium's EntityCluster rules, and clicks go through the selection dispatcher. One style module holds the sizes and colours. - Transit: vehicles are two sprite sets from an up-front atlas, rotated with Cesium's projected-rotation maths. The selected vehicle's trail is engine.lines in two lanes and 29 age bands, so trails are no longer draped over terrain until the contract has ground corridors. The Cesium contact trail renderer and its re-export go. - CCTV: markers, wedges, the plane outline and the calibration gizmo (rings, arrows, handles, drags through engine.input) draw on the contract. The textured monitor plane and the viewshed volume, which no primitive expresses yet, sit behind one seam, render/meshes.js, with a Cesium backend and a Navara backend the Navara mode passes in. Known gaps against Cesium: transit trails are not draped, and the surveillance-lens click correction runs only where the engine reports its style stage (Navara). Coupling: layer renderer lines fall from 2638/8735 to 1636/6953 (Cesium/Navara), ScreenSpaceEventHandler files from 15 to 10, `viewer` lines from 2014 to 1901.
26 lines
842 B
JavaScript
26 lines
842 B
JavaScript
import { createRadioLayer } from '../../layers/radio/index.js';
|
|
import { rendererFor } from './renderers.js';
|
|
import * as picking from '../../data/pickRegistry.js';
|
|
import * as overlays from '../../overlays/worldOverlay.js';
|
|
import * as globe from '../../celestialRing.js';
|
|
import * as render from '../../renderGovernor.js';
|
|
|
|
/**
|
|
* Construct one layer using the application scene owners and a supplied
|
|
* source; it draws with the engine's renderer from the registry
|
|
* (render/display.js on every engine).
|
|
*/
|
|
export function createApplicationRadio({
|
|
surface,
|
|
source,
|
|
rendererFactory = ({ engine, ...context }) =>
|
|
rendererFor('radio', engine, context),
|
|
}) {
|
|
const { groundFloor: ground } = surface;
|
|
return createRadioLayer({
|
|
source,
|
|
rendererFactory,
|
|
services: { ground, picking, overlays, globe, render },
|
|
});
|
|
}
|