fix(globe): Cesium picks fall through filtered results; no picks behind the horizon

Review of Task 4:
- a Cesium pick whose top result is filtered (a pickable: false set, the
  follow camera's proxy entity) took nothing; it now drills and answers the
  first result under it with an id (an object), else the first kept one
  (map tiles);
- billboards and points drawn without a depth test reach Cesium's GPU pick
  through the globe: mover instances behind the horizon (projector
  horizonVisible on the instance position) are left out of picks and
  drills, as Navara's CPU drill already did;
- the follow proxy entity (1 px point, cesium/follow.js) carries
  gevFollowProxy and is never a pick (review item 6).
This commit is contained in:
German Khokhlov committed 2026-10-16 20:59:10 +04:00
1 parent 4e195dac6b
commit a4e753d550
6 files changed
+148 -11

No files matched your search

+8
View File
@@ -322,6 +322,14 @@ export function createCesiumMovers(
});
return {
movers: registry.movers,
/** Where an instance of a set is (a geo Cartesian3), or null. */
instancePosition(owner, instance) {
const entry = registry.sets.get(owner);
if (!entry || !(instance < entry.store.count)) return null;
const view = entry.store.positionsView();
const at = 3 * instance;
return { x: view[at], y: view[at + 1], z: view[at + 2] };
},
/** The primitive drawing a live mover set of this engine, or null. */
primitiveOf(set) {
const entry = set?.id ? registry.sets.get(set.id) : null;