mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
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:
1 parent
4e195dac6b
commit
a4e753d550
6 files changed
+148
-11
No files matched your search
@@ -270,6 +270,8 @@ export function createCesiumFollow(viewer, { commanded }) {
|
||||
// one (an entity without graphics is framed once, then left).
|
||||
point: { pixelSize: 1, color: Cesium.Color.TRANSPARENT },
|
||||
});
|
||||
// Picks skip it (picker.js).
|
||||
entity.gevFollowProxy = true;
|
||||
}
|
||||
state.entity = entity;
|
||||
state.handle.native = options.native;
|
||||
|
||||
Reference in new issue
Block a user