mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Put the DISPLAY scope mask over Navara, its terminus following the engine camera's height
This commit is contained in:
1 parent
ef174b0ff7
commit
5983c663bd
5 files changed
+599
-98
No files matched your search
@@ -22,6 +22,7 @@ import {
|
||||
attachNavaraAnnotations,
|
||||
attachNavaraDraw,
|
||||
attachNavaraGeoImport,
|
||||
attachNavaraScopeMask,
|
||||
} from './navaraTools.js';
|
||||
import { createRecentImageryPanel } from '../ui/recentImagery.js';
|
||||
|
||||
@@ -495,6 +496,7 @@ export function attachViewerlessTools(
|
||||
});
|
||||
attachNavaraDraw(tools, { ...context, annotations }, { signal, defer });
|
||||
attachNavaraGeoImport(tools, context, { signal, defer });
|
||||
attachNavaraScopeMask(tools, context, { signal, defer });
|
||||
// Voice on the engine (phase 3, Task 9): the W1 tools drive the engine;
|
||||
// the Director uses the shared session; viewer-only tools declare availability.
|
||||
const voiceCommands = attachSessionVoice({
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
import { createNavaraAnnotationRenderer } from '../annotations/navaraAnnotationRenderer.js';
|
||||
import { navaraDrawSurface } from '../annotations/drawInputNavara.js';
|
||||
import { destroyScopeMask, installScopeMask } from '../scopeMask.js';
|
||||
import {
|
||||
sessionAnnotations,
|
||||
sessionDrawTool,
|
||||
@@ -92,3 +93,13 @@ export function attachNavaraGeoImport(
|
||||
defer(() => geoFileImport?.detachScene());
|
||||
return geoFileImport;
|
||||
}
|
||||
|
||||
/**
|
||||
* The DISPLAY scope mask over this Navara scene: the same canvas as on
|
||||
* Cesium, in the engine's container, its terminus following the engine
|
||||
* camera's height. It goes with the engine.
|
||||
*/
|
||||
export function attachNavaraScopeMask({ engine }, _context, { defer }) {
|
||||
installScopeMask(engine);
|
||||
defer(() => destroyScopeMask());
|
||||
}
|
||||
Reference in new issue
Block a user