Interface MeshLoDInstance
interface MeshLoDInstance {
asset: MeshLoDAsset;
children: SceneNode[];
material: PbrMaterialProps;
metadata?: LiteMetadata;
name: string;
parent: IWorldMatrixProvider | null;
position: ObservableVec3;
rotation: EulerProxy;
rotationQuaternion: ObservableQuat;
scaling: ObservableVec3;
screenSpaceError?: number;
visible: boolean;
worldMatrix: Mat4;
worldMatrixVersion: number;
}
asset: MeshLoDAsset;
children: SceneNode[];
material: PbrMaterialProps;
metadata?: LiteMetadata;
name: string;
parent: IWorldMatrixProvider | null;
position: ObservableVec3;
rotation: EulerProxy;
rotationQuaternion: ObservableQuat;
scaling: ObservableVec3;
screenSpaceError?: number;
visible: boolean;
worldMatrix: Mat4;
worldMatrixVersion: number;
}
Hierarchy (View Summary)
- SceneNode
- MeshLoDInstance
Properties
Readonlyasset
children
Readonlymaterial
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
Optionalscreen Space Error
screenSpaceError?: number
visible
visible: boolean
Self-visibility. Undefined/true = visible; false skips render + camera AABB.
Read-only: change it with setMeshVisible(node, visible), which cascades the value to
descendants and invalidates cached opaque render bundles. A plain field write would do
neither, leaving a hidden mesh drawing or a revealed mesh missing.
Readonlyworld Matrix
Readonlyworld Matrix Version
worldMatrixVersion: number
A placed instance of an asset: plain
SceneNodestate carrying its immutable asset and material. Multiple instances can share one asset.