Skip to content

Documentation / scene / WaterMediumMode

Type Alias: WaterMediumMode

WaterMediumMode = "physical" | "ramp"

Defined in: libs/scene/src/material/water.ts:34

How the water medium converts a path length into transmittance and in-scattering.

  • physical: Beer-Lambert with authored absorption/scattering coefficients in 1/m.
  • ramp: artist-authored ramp textures indexed by depth * depthMulti. Caustics still use the physical coefficients, so the two can disagree in this mode.

Released under the MIT License.