Publish the tracked satellite's focus through the renderer ports

The satellites layer publishes its focus rectangle with
publishFocusTargetAt, projecting its cached position through the query
port and measuring from the camera port's pose, as flights and military
already do. The scene-taking publishFocusTargetFromCachedPosition and the
unused advanceProjectedSpriteFocus go, and focusDeemphasis.js leaves the
Cesium allow-list. The rectangle is the same; the target's frameNumber,
which nothing reads, is now -1 as the other layers publish it.
This commit is contained in:
Sameh Khamis committed 2026-11-08 05:56:09 -08:00
1 parent b6e94b8d93
commit d0ca460313
4 files changed
+6 -131

No files matched your search

+2 -6
View File
@@ -48,7 +48,7 @@ export function createRendering({
nearFarScalarValueAtDistance,
advanceSpriteFocus,
focusAlphaNeedsWrite,
publishFocusTargetFromCachedPosition,
publishFocusTargetAt,
} = services.focus;
const scratchFocusScreen = new Cesium.Cartesian2();
@@ -252,11 +252,7 @@ export function createRendering({
/** Publish the tracked satellite's focus rectangle from its cached position. */
function _publishTrackedFocus(target) {
publishFocusTargetFromCachedPosition({
...target,
scene: layerState._viewer?.scene,
camera: layerState._viewer?.camera,
});
publishFocusTargetAt({ ...target, viewer: layerState._viewer });
}
/**