Taos API Reference
    Preparing search index...

    Interface GltfNodeInfo

    One scene node from the glTF node graph, with defaults filled in. parent is the parent node index (-1 for roots); mesh/skin are -1 when absent.

    interface GltfNodeInfo {
        name?: string;
        parent: number;
        children: number[];
        translation: [number, number, number];
        rotation: [number, number, number, number];
        scale: [number, number, number];
        matrix?: number[];
        mesh: number;
        skin: number;
        weights?: number[];
        instanceMatrices?: Float32Array<ArrayBufferLike>;
        light?: number;
    }
    Index

    Properties

    name?: string
    parent: number
    children: number[]
    translation: [number, number, number]
    rotation: [number, number, number, number]
    scale: [number, number, number]
    matrix?: number[]

    Explicit local matrix (column-major) when the node uses one instead of TRS.

    mesh: number
    skin: number
    weights?: number[]

    Default morph weights override for this node's mesh, if any.

    instanceMatrices?: Float32Array<ArrayBufferLike>

    EXT_mesh_gpu_instancing per-instance local transforms, or undefined when the node has no instancing. A flat count × 16 column-major array: each 16-float block is one instance's TRS matrix in the node's local space. The instance's world transform is nodeWorldMatrix × instanceMatrix, so the node's mesh is drawn once per block. (count = instanceMatrices.length / 16.)

    light?: number

    KHR_lights_punctual: index into GltfModel.lights for the light attached to this node, or undefined when the node has no light.