LinFog

LinFog

Linear fog

Constructor

new LinFog(color, scattering)

Source:

Constructor.

Parameters:
Name Type Description
color Color

the fog color

scattering number

parameter controlling the scattering rate

Extends

Classes

LinFog

Members

color :Color

Source:

Fog color

Type:
  • Color

scattering :number

Source:

Parameter controlling the scattering rate

Type:
  • number

Methods

shader(shaderBuilder)

Source:
Overrides:

Extend the given shader with the appropriate code

Parameters:
Name Type Description
shaderBuilder ShaderBuilder

the shader builder