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

    Class Fog

    Represents the global fog settings for a scene.

    Index

    Constructors

    Properties

    color: Color

    The color of the fog.

    density: number

    The density of the fog (used for EXP and EXP2 modes).

    far: number

    The ending distance where fog is 100% (used for LINEAR mode).

    height: number

    The world-space Y coordinate where height fog starts.

    heightFalloff: number

    How quickly the fog density drops off above the fog height (0 = off).

    mode: FogMode

    The mathematical mode of the fog.

    near: number

    The starting distance of the fog (used for LINEAR mode).