mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(satellites): render on Navara
Render satellite fleets and selected targets through mover banks and orbit lines. Enable the celestial HUD on Navara and keep native follow explicitly in ENU. Add deterministic interaction, share, orbit, motion and cleanup acceptance QA. Record complete targeted acceptance and remaining shared cross-shell tile failures.
This commit is contained in:
1 parent
000ef99464
commit
6bdb995fe3
25 files changed
+727
-53
No files matched your search
@@ -0,0 +1,22 @@
|
||||
// The shared engine view has no renderer-library imports. Reuse its cached
|
||||
// camera basis for the celestial canvas, with flight and host ownership here.
|
||||
import { registerViewerEngine } from '../globe/cesium/engineFromViewer.js';
|
||||
import { createEngineLayerView } from '../layers/shared/render/engineView.js';
|
||||
export function createCelestialView(engine) {
|
||||
const adapter = createEngineLayerView(engine, { layerId: 'celestial-ring' });
|
||||
const { view } = adapter;
|
||||
view.container = engine.host.container;
|
||||
view.scene.canvas = engine.host.canvas;
|
||||
view.scene.postRender = engine.frames.postRender;
|
||||
view.scene.requestRender = () => engine.render.request('celestial-ring');
|
||||
view.camera.flyTo = ({ easingFunction, ...options }) =>
|
||||
engine.camera.flyTo({ ...options, easing: 'cubicInOut' });
|
||||
const unregister = registerViewerEngine(view, engine);
|
||||
return {
|
||||
view,
|
||||
destroy() {
|
||||
unregister();
|
||||
adapter.destroy();
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user