Class Fog

This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(hex: number, near?: number, far?: number): Fog

Parameters

  • hex: number
  • near?: number optional
  • far?: number optional

Returns

Fog

Properties

public color: Color

Fog color.

public far: number

The maximum distance at which fog stops being calculated and applied. Objects that are more than 'far' units away from the active camera won't be affected by fog. Default is 1000.

public name: string

public near: number

The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog.

Methods

public clone(): Fog

Returns

Fog