ThreePresenter API Documentation - v0.1.2
    Preparing search index...

    Interface LoaderConfig

    Configuration for model loading

    interface LoaderConfig {
        dracoDecoderPath?: string;
        dracoDecoderType?: "js" | "wasm";
        autoComputeNormals?: boolean;
        defaultMaterial?: {
            color?: number;
            flatShading?: boolean;
            metalness?: number;
            roughness?: number;
        };
    }
    Index

    Properties

    dracoDecoderPath?: string

    Path to Draco decoder (default: Google CDN)

    dracoDecoderType?: "js" | "wasm"

    Draco decoder type (default: 'js')

    autoComputeNormals?: boolean

    Whether to automatically compute vertex normals for PLY (default: true)

    defaultMaterial?: {
        color?: number;
        flatShading?: boolean;
        metalness?: number;
        roughness?: number;
    }

    Default material properties for PLY files