Function setFog
-
Parameters
- scene: SceneContext
The scene to configure.
- config: FogConfig
The fog configuration (mode, density, start, end, color).
Returns void
- scene: SceneContext
The scene to configure.
The fog configuration (mode, density, start, end, color).
Enable scene fog and register its scene-uniform contributor.
Fog is an opt-in feature: importing
setFogis what pulls the fog UBO writer into the bundle, keeping those bytes out of scenes that never use fog.