Skip to content

Documentation / @ripl/3d / resolveFog

Function: resolveFog() ​

resolveFog(fog): ResolvedFog | null

Defined in: 3d/src/core/fog.ts:40

Resolves fog into the numeric form the scene uniform and the CPU painter consume.

Parameters ​

ParameterTypeDescription
fogFog | null | undefinedThe fog to resolve, or undefined/null for none.

Returns ​

ResolvedFog | null

The resolved fog, or null when there is none.