Documentation
    Preparing search index...

    Interface GeometryRecord

    Everything one cached geometry needs at draw time.

    interface GeometryRecord {
        colorBuffer: object | null;
        count: number;
        indexBuffer: object | null;
        indexType: number | null;
        jointBuffer: object | null;
        mode: number;
        normal1Buffer: object | null;
        normalBuffer: object | null;
        position1Buffer: object | null;
        positionBuffer: object;
        uvBuffer: object | null;
        version: number;
        vertexArray: object;
        weightBuffer: object | null;
    }
    Index
    colorBuffer: object | null

    Buffer backing the optional per-vertex colour attribute (§53, §60a; R-19), or null. Bound at COLOR_ATTRIBUTE_LOCATION; consumed only by an unlit draw whose material sets vertexColors — which is how §113's debug-draw overlay reaches the screen (R-35).

    count: number

    Elements one draw call issues — indices when indexed, vertices otherwise.

    indexBuffer: object | null

    Index buffer, or null for a non-indexed geometry.

    indexType: number | null

    Index element type (GL.UNSIGNED_SHORT or GL.UNSIGNED_INT), or null when the geometry is not indexed — which is also the flag that selects drawArrays over drawElements.

    jointBuffer: object | null

    Buffer backing the optional joint-index attribute (§53, §54; RFC 0003), or null. Bound at JOINTS_ATTRIBUTE_LOCATION as non-normalized UNSIGNED_SHORT — the skinned pipelines declare in vec4 joints and index with int(...); every other program ignores the slot.

    mode: number

    Primitive mode: GL.TRIANGLES or GL.LINES.

    normal1Buffer: object | null

    Buffer backing the optional first morph-target normal stream (§54), or null. Bound at NORMAL1_ATTRIBUTE_LOCATION.

    normalBuffer: object | null

    Buffer backing the optional normal attribute (§53, §68), or null for a position-only geometry. Bound at the fixed NORMAL_ATTRIBUTE_LOCATION inside the vertex array, so the lit pipeline reads it with no extra per-draw call — and the unlit pipeline, which declares no normal input, ignores it for free.

    position1Buffer: object | null

    Buffer backing the optional first morph-target position stream (§54), or null. Bound at POSITION1_ATTRIBUTE_LOCATION.

    positionBuffer: object

    Buffer backing the position attribute.

    uvBuffer: object | null

    Buffer backing the optional uv attribute (§53, §55; R-19), or null for a geometry with no texture coordinates. Bound at UV_ATTRIBUTE_LOCATION inside the vertex array; the unlit and lit pipelines declare the slot and sample it only when their material carries a map, and the sprite pipeline — which derives uv from position — ignores it entirely.

    version: number

    BufferGeometry.version this record was uploaded from.

    vertexArray: object

    Vertex array holding the attribute and element-array bindings.

    weightBuffer: object | null

    Buffer backing the optional joint-weight attribute (§53, §54; RFC 0003), or null. Bound at WEIGHTS_ATTRIBUTE_LOCATION; consumed only by the skinned pipelines.