API

Interface CameraGizmo

Display-only gizmo that visualizes an attached camera body and optional frustum.

interface CameraGizmo {
    attachedCamera: Camera | null;
    frustumMaterial: StandardMaterialProps;
    material: StandardMaterialProps;
    root: SceneNode;
}
Index
attachedCamera: Camera | null

Currently attached camera — set via attachCameraGizmoToCamera.

frustumMaterial: StandardMaterialProps

Alias of material — kept for backward compatibility with callers that mutated frustumMaterial against the older variant.

Material shared by the body + frustum. Mutate diffuseColor to recolor.

root: SceneNode

Root node — the gizmo follows the attached camera's world translation and orientation each frame.