mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 10:12:18 +00:00
Layer display tests no longer re-check Cesium primitives in every layer: they run on the fake engine, and one Cesium translation check per ground kind lives in the Cesium engine's ground tests. Their harnesses are shared, and the fake-engine, Cesium-engine and flights tests that repeated the contract suite are gone, 340 tests in all. The press-travel measurement is shared by the selection dispatcher and CCTV, which loses its ScreenSpaceEventHandler shim and world-click module. ALPR, installations and bikeshare share one selection keeper and selected marker write. Layers with their own click rules keep their handlers. Navara's pulse is a class like the ground pass, the ground and imagery passes share the surface uniforms, and the colour, log-depth and occlusion GLSL lives in one chunk module, each caller keeping its depth bias. The ground suite runs inside the contract suite (--only=ground:), and fixture and script names say what they test. Behaviour is unchanged on both engines.
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
import { createCctvLayer } from '../../layers/cctv/index.js';
|
|
import { rendererFor } from './renderers.js';
|
|
import * as credits from '../../data/dataCredits.js';
|
|
import * as activation from '../../cctvFocusRequest.js';
|
|
import { worldOverlayFor as overlays } from '../../overlays/worldOverlay.js';
|
|
import { CITY_POIS } from '../../cityPois.js';
|
|
import * as picking from '../../data/pickRegistry.js';
|
|
import * as focus from '../../data/focusDeemphasis.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 manifest
|
|
* (render/display.js on every engine).
|
|
*/
|
|
export function createApplicationCctv({
|
|
surface,
|
|
source,
|
|
rendererFactory = ({ engine, ...context }) =>
|
|
rendererFor('cctv', engine, context),
|
|
}) {
|
|
const { terrain, groundFloor: ground, meshFloor: mesh } = surface;
|
|
const layer = createCctvLayer({
|
|
source,
|
|
rendererFactory,
|
|
services: {
|
|
credits,
|
|
activation,
|
|
overlays,
|
|
locations: { CITY_POIS },
|
|
picking,
|
|
terrain,
|
|
ground,
|
|
mesh,
|
|
focus,
|
|
render,
|
|
},
|
|
});
|
|
return layer;
|
|
}
|