Fog

Linear fog.

Constructor

new Fog(coloropt, nearopt, faropt)

Parameters:
NameTypeAttributesDefaultDescription
colornumber<optional>
0x000000

The color of the fog.

nearnumber<optional>
1

The near clip of the fog.

farnumber<optional>
1000

The far clip of the fog.

Members

color :Color3

The color of the fog.

Type:
Default Value
  • 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