Interface LightBase
interface LightBase {
children: SceneNode[];
excludedMeshIds?: ReadonlySet<string>;
includedOnlyMeshIds?: ReadonlySet<string>;
lightType: string;
metadata?: LiteMetadata;
name: string;
parent: IWorldMatrixProvider | null;
position: ObservableVec3;
rotation: EulerProxy;
rotationQuaternion: ObservableQuat;
scaling: ObservableVec3;
shadowGenerator?: ShadowGenerator;
visible?: boolean;
worldMatrix: Mat4;
worldMatrixVersion: number;
}
children: SceneNode[];
excludedMeshIds?: ReadonlySet<string>;
includedOnlyMeshIds?: ReadonlySet<string>;
lightType: string;
metadata?: LiteMetadata;
name: string;
parent: IWorldMatrixProvider | null;
position: ObservableVec3;
rotation: EulerProxy;
rotationQuaternion: ObservableQuat;
scaling: ObservableVec3;
shadowGenerator?: ShadowGenerator;
visible?: boolean;
worldMatrix: Mat4;
worldMatrixVersion: number;
}
Hierarchy (View Summary)
Properties
children
Optionalexcluded Mesh Ids
excludedMeshIds?: ReadonlySet<string>
Mesh IDs excluded from this light. If set, these meshes are NOT lit by this light.
Optionalincluded Only Mesh Ids
includedOnlyMeshIds?: ReadonlySet<string>
If non-empty, ONLY these mesh IDs are lit by this light. Takes priority over excludedMeshIds.
Readonlylight Type
lightType: string
Optionalmetadata
User metadata. glTF loads populate metadata.gltf.extras when source extras exist.
name
name: string
parent
Readonlyposition
Readonlyrotation
rotation: EulerProxy
Euler XYZ bidirectional proxy — reads decompose current quat; writes update quat atomically.
Readonlyrotation Quaternion
Quaternion rotation — source of truth for the local matrix.
Readonlyscaling
Optionalshadow Generator
Shadow generator attached to this light. Set this to make the light cast shadows.
Optionalvisible
visible?: boolean
Self-visibility. Undefined/true = visible; false skips render + camera AABB.
Cascade is materialized at write-time by setSubtreeVisible.
Readonlyworld Matrix
Readonlyworld Matrix Version
worldMatrixVersion: number
Shared base for all light types. Provides pipeline integration callbacks so render pipelines are light-agnostic.