fix: FOV rays originate from actual camera position (Y=-1), not court edge

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ruslan Bakiev
2026-03-07 11:54:42 +07:00
parent 2ff8a87037
commit 39159f804f

View File

@@ -691,10 +691,8 @@ function addStereocameras(scene) {
return new THREE.Vector3(px, py, 0.015);
}
// Camera position projected onto court near edge (Y=0)
var camOnCourt = new THREE.Vector3(
Math.max(courtMinX, Math.min(courtMaxX, cx)), courtMinY, 0.015
);
// Camera actual position (behind court at Y=-1)
var camOnCourt = new THREE.Vector3(cx, oy, 0.015);
// Far edge points
var farPoints = [];