VFX-JS
    Preparing search index...

    Type Alias EffectGeometry

    Custom geometry for ctx.draw({ geometry }).

    type EffectGeometry = {
        attributes: Record<string, EffectAttributeDescriptor>;
        drawRange?: { count?: number; start?: number };
        indices?: Uint16Array | Uint32Array;
        instanceCount?: number;
        mode?: "triangles" | "lines" | "lineStrip" | "points";
    }
    Index

    Properties

    attributes: Record<string, EffectAttributeDescriptor>

    Vertex attributes keyed by name.
    Names must match the attribute / in declarations
    in your vertex shader ("position" is conventional).

    drawRange?: { count?: number; start?: number }

    Restrict the draw call to a sub-range of vertices/indices.

    indices?: Uint16Array | Uint32Array

    Optional index buffer for indexed drawing.

    instanceCount?: number

    Number of instances for instanced drawing.

    mode?: "triangles" | "lines" | "lineStrip" | "points"

    Primitive type to draw. (Default: "triangles")