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

    Interface AreaLightOptions

    Configuration options for area light.

    interface AreaLightOptions {
        castShadow?: boolean;
        color?: Color;
        height?: number;
        intensity?: number;
        name?: string;
        shadowBias?: number;
        shadowNormalBias?: number;
        shadowResolution?: number;
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    castShadow?: boolean

    Whether the light casts shadows. Defaults to false.

    color?: Color

    The color of the light. Defaults to white.

    height?: number

    The height/length of the light area. Defaults to 5.0.

    intensity?: number

    The intensity of the light. Defaults to 1.0.

    name?: string

    The name of the light object. Defaults to "Light".

    shadowBias?: number

    A small offset to prevent shadow acne. Defaults to 0.005.

    shadowNormalBias?: number

    An offset along the surface normal to prevent shadow acne. Defaults to 0.0.

    shadowResolution?: number

    The resolution of the shadow map for this light. Defaults to 512.

    width?: number

    The width of the light area. Defaults to 5.0.