Small World Engine API Reference - v0.78.00
    Preparing search index...

    Interface GltfDocument

    Minimal glTF 2.0 JSON document shape WorldWriter produces -- deliberately not the full spec, only the subset exercised by the World Format's round-trip (node hierarchy, one mesh's material, lights, and the SW_* vendor extensions). Kept in its own module (rather than defined inline in WorldWriter.ts) so GltfExtensionPlugin implementations can reference these types without an import cycle back through WorldWriter.ts itself. See docs/adr/0010-maker-editor-architecture.md and docs/adr/0017-gltf-extension-plugin-registry.md.

    interface GltfDocument {
        accessors?: GltfAccessorJson[];
        asset: { generator: string; version: "2.0" };
        buffers?: { byteLength: number; uri: string }[];
        bufferViews?: GltfBufferViewJson[];
        extensions?: { KHR_lights_punctual?: { lights: GltfLightJson[] } };
        extensionsUsed?: string[];
        materials?: GltfMaterialJson[];
        meshes?: GltfMeshJson[];
        nodes: GltfNodeJson[];
        scene: number;
        scenes: { nodes: number[] }[];
    }
    Index
    accessors?: GltfAccessorJson[]
    asset: { generator: string; version: "2.0" }
    buffers?: { byteLength: number; uri: string }[]
    bufferViews?: GltfBufferViewJson[]
    extensions?: { KHR_lights_punctual?: { lights: GltfLightJson[] } }
    extensionsUsed?: string[]
    materials?: GltfMaterialJson[]
    meshes?: GltfMeshJson[]
    nodes: GltfNodeJson[]
    scene: number
    scenes: { nodes: number[] }[]