magic-pixels
    Preparing search index...

    Type Alias GltfBuffer

    type GltfBuffer = {
        byteLength: number;
        extensions?: {
            EXT_meshopt_compression?: { fallback?: boolean };
            [name: string]: unknown;
        };
        name?: string;
        uri?: string;
    }
    Index
    byteLength: number
    extensions?: {
        EXT_meshopt_compression?: { fallback?: boolean };
        [name: string]: unknown;
    }

    Type Declaration

    • [name: string]: unknown
    • OptionalEXT_meshopt_compression?: { fallback?: boolean }

      Present on a EXT_meshopt_compression fallback buffer: a buffer kept for byte-length bookkeeping only, never actually read because every bufferView that nominally uses it is redirected by its own EXT_meshopt_compression extension to the real, compressed buffer.

    name?: string
    uri?: string

    relative URL or data URI; absent for the binary chunk of a .glb