API

Interface CameraGizmoOptions

Options for the display-only camera gizmo.

interface CameraGizmoOptions {
    color?: [number, number, number];
    displayBody?: boolean;
    displayFrustum?: boolean;
    frustumColor?: [number, number, number];
}
Index
color?: [number, number, number]

RGB color for the camera body + frustum material. Defaults to grey.

displayBody?: boolean

Set to false to omit the camera body mesh (box + cylinders). Default true.

displayFrustum?: boolean

Set to false to omit the frustum wireframe. Defaults to true.

frustumColor?: [number, number, number]

RGB color for the frustum wireframe edges (alias of color kept for backward compatibility with the previous tube-body variant).