API

Interface UtilityLayerOptions

Options used when creating a utility layer for gizmos and overlays.

interface UtilityLayerOptions {
    addDefaultLight?: boolean;
    lightIntensity?: number;
}
Index
addDefaultLight?: boolean

Add a built-in hemispheric light so gizmo materials are visible without the caller adding one. Defaults to true.

lightIntensity?: number

Default light intensity when addDefaultLight is true. Defaults to 1.0.