mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
fix(cctv): register camera point visibility capability
This commit is contained in:
1 parent
02c60c0a20
commit
28007e20ef
9 files changed
+26
-3
No files matched your search
@@ -43,6 +43,7 @@ export function fitToProjection(sourceW, sourceH) {
|
||||
}
|
||||
|
||||
const _scratchPoints = [];
|
||||
const HORIZON_MARGIN_M = 200;
|
||||
|
||||
export function createFrames({ state: layerState, services, parts, source }) {
|
||||
/**
|
||||
@@ -267,7 +268,7 @@ export function createFrames({ state: layerState, services, parts, source }) {
|
||||
if (placed?.br) points.push(placed.br);
|
||||
if (placed?.bl) points.push(placed.bl);
|
||||
// Unknown modes or unsupported cameras must not suppress pictures.
|
||||
return camera.visiblePoints(points, 200) !== false;
|
||||
return camera.visiblePoints(points, HORIZON_MARGIN_M) !== false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user