Skip to content

Documentation / @ripl/3d / ResolvedFog

Interface: ResolvedFog ​

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

Fog reduced to the numeric form the scene uniform carries.

Properties ​

PropertyTypeDescriptionDefined in
colorColorUnitRGBThe fog colour, in unit RGB.3d/src/core/uniforms.ts:165
densitynumberDensity of exponential fog.3d/src/core/uniforms.ts:171
farnumberDistance at which linear fog fully obscures.3d/src/core/uniforms.ts:169
modenumberThe fog mode, one of FOG_MODE_CODE.3d/src/core/uniforms.ts:163
nearnumberDistance at which linear fog begins.3d/src/core/uniforms.ts:167