Renderer · interface
UnderwaterAtmosphere
Optional camera medium layered over an environment's ordinary air fog.
Explained in Hello world.
interface UnderwaterAtmosphereimport type { UnderwaterAtmosphere } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
surfaceY | number | Resting water-surface height in world metres. |
color | Vec3 | Colour distant light converges toward inside the water column. |
fogDensity | number | Squared-exponential density inside the water column. |
transitionDepth | number | Half-width of the smooth air↔water transition around the surface. |