Renderer · interface

UnderwaterAtmosphere

Optional camera medium layered over an environment's ordinary air fog.

Explained in Hello world.

interface UnderwaterAtmosphere
import type { UnderwaterAtmosphere } from '@driftengine/core';

Properties

NameTypeDescription
surfaceYnumberResting water-surface height in world metres.
colorVec3Colour distant light converges toward inside the water column.
fogDensitynumberSquared-exponential density inside the water column.
transitionDepthnumberHalf-width of the smooth air↔water transition around the surface.