Skip to content

Documentation / @ripl/3d / FOG_MODE_CODE

Variable: FOG_MODE_CODE ​

const FOG_MODE_CODE: object

Defined in: 3d/src/core/uniforms.ts:42

Numeric discriminators for each fog mode, shared by the packer and the shader.

Type Declaration ​

exponential ​

readonly exponential: 2 = 2

Fog ramping exponentially with the square of distance.

linear ​

readonly linear: 1 = 1

Fog ramping linearly between a near and a far distance.

none ​

readonly none: 0 = 0

No fog.