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

    Interface LightCfg

    Defines the light shadow settings used to configure shadow map resolution and shadow camera limits.

    interface LightCfg {
        bias: number;
        castShadow: boolean;
        far: number;
        mapHeight: number;
        mapWidth: number;
        near: number;
        normalBias: number;
        rectArea: boolean;
    }
    Index
    bias: number

    Constant shadow bias applied to reduce shadow acne.

    0
    
    castShadow: boolean

    If true, the light casts shadows.

    true
    
    far: number

    Far clipping plane of the light's shadow camera.

    500
    
    mapHeight: number

    Shadow map resolution along the vertical axis.

    512
    
    mapWidth: number

    Shadow map resolution along the horizontal axis.

    512
    
    near: number

    Near clipping plane of the light's shadow camera.

    0.5
    
    normalBias: number

    Normal-based shadow bias to further reduce shadow artifacts.

    0
    
    rectArea: boolean

    Loads and initializes the renderer-specific LTC data required by RectAreaLight.

    false