Documentation
    Preparing search index...

    Interface GltfPrimitiveRecord

    One primitive's decoded vertex streams, in the geometry layer's layout.

    interface GltfPrimitiveRecord {
        colors?: Float32Array<ArrayBufferLike>;
        indices?: Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>;
        joints?: Uint16Array<ArrayBufferLike>;
        material: number | null;
        mode: GltfPrimitiveMode;
        normals?: Float32Array<ArrayBufferLike>;
        normals1?: Float32Array<ArrayBufferLike>;
        positions: Float32Array;
        positions1?: Float32Array<ArrayBufferLike>;
        uvs?: Float32Array<ArrayBufferLike>;
        weights?: Float32Array<ArrayBufferLike>;
    }
    Index
    colors?: Float32Array<ArrayBufferLike>

    Optional straight RGBA colors, 4 floats per vertex (VEC3 gains alpha 1).

    indices?: Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>

    Optional indices, each validated < vertexCount (§96).

    joints?: Uint16Array<ArrayBufferLike>

    Optional joint indices, 4 per vertex, validated against the skin.

    material: number | null

    Index into GltfAsset.materials, or null for the default.

    Primitive assembly.

    normals?: Float32Array<ArrayBufferLike>

    Optional normals, xyz triplets, index-aligned with positions.

    normals1?: Float32Array<ArrayBufferLike>

    Optional first morph-target normals (NORMAL of targets[0]).

    positions: Float32Array

    Vertex positions, xyz triplets — finite (§85, §96).

    positions1?: Float32Array<ArrayBufferLike>

    Optional first morph-target positions (POSITION of targets[0]).

    uvs?: Float32Array<ArrayBufferLike>

    Optional texture coordinates, uv pairs, already converted to §7a's bottom-up v (v → 1 − v), matching the row flip the texture tier performs — see the module header.

    weights?: Float32Array<ArrayBufferLike>

    Optional joint weights, 4 per vertex, index-parallel with joints.