Enumeration: FovMode
Determines how the camera's field of view (FOV) is calculated relative to the viewport.
The FovMode enum defines whether the camera's field of view is constrained by the vertical or horizontal dimensions of the viewport. This affects how the scene is framed and how perspective changes when viewport dimensions change.
Example
// Creating a camera with vertical FOV mode
const camera = new ArcRotateCamera("camera", 0, 0, 10, Vector3.Zero(), scene);
camera.fovMode = FovMode.VERTICAL;
camera.fov = Math.PI/4; // 45 degrees vertical FOV
// Switching to horizontal FOV mode for landscape views
if (isLandscapeOrientation) {
camera.fovMode = FovMode.HORIZONTAL;
}