VFX-JS
    Preparing search index...

    Type Alias EffectGeometry

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

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

    Properties

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

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

    attributes: Record<string, EffectAttributeDescriptor>

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

    indices?: Uint16Array | Uint32Array

    Optional index buffer for indexed drawing.

    instanceCount?: number

    Number of instances for instanced drawing.

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

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