PokéRogue
    Preparing search index...

    Type Alias ImageLightConfig

    type ImageLightConfig = {
        bulge?: number;
        colorFactor?: number[];
        environmentMap?: string | Texture;
        modelMatrix?: Matrix4;
        modelRotation?: number;
        modelRotationSource?: GameObject | ImageLightSourceCallback | null;
        normalMap?: string | Texture;
    }
    Index
    bulge?: number

    The amount of bulge to apply to the ImageLight effect. This distorts the surface slightly, preventing flat areas in the normal map from reflecting a single flat color. A value of 0.1 is often plenty.

    colorFactor?: number[]

    The color factor to apply to the ImageLight effect. This multiplies the intensity of the light in each color channel. Use values above 1 to substitute for high dynamic range lighting.

    environmentMap?: string | Texture

    The texture to use for the ImageLight effect environment map.

    modelMatrix?: Matrix4

    The initial model matrix. If not provided, a default matrix will be created.

    modelRotation?: number

    The initial rotation of the model in radians.

    modelRotationSource?: GameObject | ImageLightSourceCallback | null

    The source of the model rotation. If a function, it will be called to get the rotation. If a GameObject, it will be used to get the rotation from the GameObject's world transform. If null, the model rotation will be taken from the modelRotation property.

    normalMap?: string | Texture

    The texture to use for the ImageLight effect normal map. This should match the object being filtered. The default is flat lighting.