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

    Interface QualityConfig

    Quality settings for the engine.

    interface QualityConfig {
        autoDowngrade?: boolean;
        clusteredLighting?: ClusteredLightingConfig;
        disableTextures?: boolean;
        exposure?: number;
        gamma?: number;
        hdr?: boolean;
        maxAnisotropy?: number;
        maxPixelRatio?: number;
        maxShadowResolution?: number;
        mipmapping?: boolean;
        msaa?: number;
        toneMapping?: ToneMapping;
    }
    Index
    autoDowngrade?: boolean

    Whether to automatically downgrade settings (disable HDR, MSAA, etc.) on low-end devices. Defaults to true.

    clusteredLighting?: ClusteredLightingConfig

    Clustered/tiled forward+ light culling settings (WebGL2/WebGPU only).

    disableTextures?: boolean

    Global toggle to disable all textures (renders default fallback textures). Defaults to false.

    exposure?: number

    Global exposure factor for brightness control. Defaults to 1.0.

    gamma?: number

    Global gamma factor for color correction. Defaults to 2.2.

    hdr?: boolean

    Whether to enable HDR rendering. Defaults to false.

    maxAnisotropy?: number

    Maximum anisotropic filtering level (1, 4, 8, 16). Defaults to 4.

    maxPixelRatio?: number

    Maximum device pixel ratio (DPR) to use. Useful to clamp rendering resolution on 3x mobile displays. Defaults to Math.min(window.devicePixelRatio, 2).

    maxShadowResolution?: number

    Maximum shadow map resolution. Defaults to 1024.

    mipmapping?: boolean

    Global toggle for mipmapping. Defaults to true.

    msaa?: number

    Antialiasing (MSAA) level (0, 2, 4, 8). Defaults to 4.

    toneMapping?: ToneMapping

    The tone mapping algorithm to use. Defaults to NONE.