Illutions Engine API - v0.26.0
    Preparing search index...

    Interface ModelCfg

    Defines the GLTF/GLB model loading settings used to fetch models and configure optional Draco decoding.

    interface ModelCfg {
        compress: {
            mesh: "none" | "draco" | "meshopt";
            texture: "none" | "webp" | "ktx2";
        };
        decoderPath: string;
        file: string
        | string[]
        | null;
        progressBar: boolean;
    }
    Index
    compress: {
        mesh: "none" | "draco" | "meshopt";
        texture: "none" | "webp" | "ktx2";
    }

    Type Declaration

    • mesh: "none" | "draco" | "meshopt"

      Mesh compression used by the GLTF/GLB file.

      'none'
      
    • texture: "none" | "webp" | "ktx2"

      Texture compression used by the GLTF/GLB file.

      'none'
      
    decoderPath: string

    Public path to the Draco decoder files.

    'draco/'
    
    file: string | string[] | null

    One GLTF/GLB scene path or an ordered list of progressively higher-quality scene paths. The first file initializes the scene; subsequent files replace matching mesh geometries and materials in order. Set to null if no model should be loaded.

    null
    
    progressBar: boolean

    Shows a loading progress bar while the model is being fetched.

    true