Bitbybit Docs
    Preparing search index...

    Class FogDto (Inputs.BabylonScene)

    Feeds babylon.scene.fog: the fog mode, its color, how dense it is and, for linear fog, where it starts and ends.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalmode: fogModeEnum
      • Optionalcolor: string
      • Optionaldensity: number
      • Optionalstart: number
      • Optionalend: number

      Returns FogDto

    Properties

    none turns fog off, linear fades between start and end, exponential and exponentialSquared fade by density

    none
    
    color?: string

    Hex color distant geometry fades into, normally the background color

    #ffffff
    
    density?: number

    How quickly the exponential modes thicken with distance; ignored by linear fog

    0.1
    

    0

    Infinity

    0.1

    start?: number

    Distance from the camera where linear fog begins, in scene units

    0
    

    0

    Infinity

    1

    end?: number

    Distance from the camera where linear fog hides everything, in scene units

    1000
    

    0

    Infinity

    1