mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-24 04:02:19 +00:00
fix(cctv): address review of #1543 (horizon test, resume guard, no per-frame allocation, mobile sheet)
- frames.test: viewerAt uses Cesium's default far (5e8) so the below-horizon test fails without occluder.isPointVisible - cctvControls: install the resume observer for a still-only panel too - cctvPresentation: panelShown also requires the Cameras sheet on phones; the observer watches body class/data-mobile-sheet - frames.projectionInView: shared horizonOccluder + scratch sphere/array
This commit is contained in:
1 parent
0151c178a4
commit
9a3fc84935
6 files changed
+110
-25
No files matched your search
@@ -185,7 +185,9 @@ function viewerAt(position, direction, up) {
|
||||
fov: Cesium.Math.toRadians(60),
|
||||
aspectRatio: 16 / 9,
|
||||
near: 1,
|
||||
far: 5e6,
|
||||
// Cesium's default far plane, as the app uses: a smaller one rejects
|
||||
// the far-side mount before the horizon check is ever reached.
|
||||
far: 5e8,
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user