magic-pixels
    Preparing search index...

    Type Alias GltfResult

    What loadGltf and parseGltf return

    type GltfResult = {
        cameras: Camera[];
        json: GltfJson;
        lights: Light[];
        materials: Material[];
        nodes: Object3D[];
        scene: Scene;
        scenes: Scene[];
        textures: Texture[];
    }
    Index
    cameras: Camera[]

    the cameras found on nodes, in node order

    json: GltfJson

    the parsed JSON document, for anything the loader does not map

    lights: Light[]

    the KHR_lights_punctual lights found on nodes, in node order

    materials: Material[]

    every material the loader created: one per glTF material and per combination of draw mode and vertex attributes it is used with (map presence and vertex colours are baked into the shader source)

    nodes: Object3D[]

    every node of the file as a scene graph object, by glTF index

    scene: Scene

    the default scene of the file (or its first scene; empty if it has none)

    scenes: Scene[]

    every scene of the file, by glTF index

    textures: Texture[]

    every texture the loader created: one per glTF texture and colour space