Class: Fog

zen3d.Fog(coloropt, nearopt, faropt)

new Fog(coloropt, nearopt, faropt)

Linear fog.
Parameters:
Name Type Attributes Default Description
color number <optional>
0x000000 The color of the fog.
near number <optional>
1 The near clip of the fog.
far number <optional>
1000 The far clip of the fog.
Source:

Members

color :zen3d.Color3

The color of the fog.
Type:
Default Value:
  • zen3d.Color3(0x000000)
Source:

far :number

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

near :number

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