gpu-curtains
    Preparing search index...

    Interface IMeshPrimitive

    Geometry to be rendered with the given material

    interface IMeshPrimitive {
        extras?: Record<string, unknown>;
        attributes: { [name: string]: number };
        indices?: number;
        material?: number;
        mode?: MeshPrimitiveMode;
        targets?: { [name: string]: number }[];
        extensions?: GLTFPrimitivesExtensions;
    }

    Hierarchy (View Summary)

    Index

    Properties

    extras?: Record<string, unknown>

    Application-Specific data

    attributes: { [name: string]: number }

    A dictionary object, where each key corresponds to mesh attribute semantic and each value is the index of the accessor containing attribute's data

    indices?: number

    The index of the accessor that contains the indices

    material?: number

    The index of the material to apply to this primitive when rendering

    The type of primitives to render. All valid values correspond to WebGL enums

    targets?: { [name: string]: number }[]

    An array of Morph Targets, each Morph Target is a dictionary mapping attributes (only POSITION, NORMAL, and TANGENT supported) to their deviations in the Morph Target

    Dictionary object with primitive extension-specific objects