t3d. Fog

Linear fog.

Constructor

new Fog(coloropt, nearopt, faropt)

Parameters:
NameTypeAttributesDefaultDescription
colorNumber<optional>
0x000000The color of the fog.
nearNumber<optional>
1The near clip of the fog.
farNumber<optional>
1000The far clip of the fog.

Members

color :t3d.Color3

The color of the fog.
Default Value
  • t3d.Color3(0x000000)

far :Number

The far clip of the fog.
Type:
  • Number
Default Value
  • 1000

(readonly) isFog :Boolean

Type:
  • Boolean
Default Value
  • true

near :Number

The near clip of the fog.
Type:
  • Number
Default Value
  • 1