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

    Variable FogModeConst

    FogMode: { DEFAULT: 3; EXP: 2; EXP2: 3; LINEAR: 1; NONE: 0 } = ...

    Defines the mathematical mode used for calculating fog density.

    Type Declaration

    • ReadonlyDEFAULT: 3

      The mode assumed when none is specified.

    • ReadonlyEXP: 2

      Exponential fog simulating physical light scattering.

    • ReadonlyEXP2: 3

      Squared exponential fog for a sharper, more dramatic drop-off.

    • ReadonlyLINEAR: 1

      Linear fog increasing between a near and far distance.

    • ReadonlyNONE: 0

      No fog applied.