mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
findFrame and frameOf find the bound renderer's frame port or, for a caller's viewer with no renderer bound, one the Cesium adapter's factory builds over it, as findQuery and findDraw do. Unlike the renderer's own, it leaves the viewer's loop as its owner set it up: it listens to the scene's phases, asks for frames, holds by asking again after each one drawn, and maps suspend, the target rate and scene time onto the viewer. Its preUpdate says whether the tick draws by the same test the renderer's frame port makes, now shared by both. The active fires layer's cards and LOD watcher take their query and frame ports from findQuery and findFrame, in place of the layer's own copy of projection, occlusion and preRender over the viewer's scene.
12 lines
398 B
JavaScript
12 lines
398 B
JavaScript
/**
|
|
* @module render/cesium/unbound
|
|
* @description What to load, once, before handing the Cesium-free
|
|
* layers a Cesium viewer with no renderer bound: the factories
|
|
* that build a camera, credits, effects, draw, frame and query port over
|
|
* such a viewer when code first asks for one (`rendererOf.js`).
|
|
*/
|
|
import './camera.js';
|
|
import './effects.js';
|
|
import './frame.js';
|
|
import './query.js';
|