threejs-worldgen
    Preparing search index...

    Variable WATER_PRESETSConst

    WATER_PRESETS: Record<"clear" | "muddy", WaterPreset> = ...

    Clear and muddy water. Clear: water's density, sound speed ≈ 12 m/s (fine for splashes and falls up to a few metres, ~3 % compression per metre of depth) and Beer–Lambert absorption of pure water (red goes first). Muddy: suspended silt, heavier and more viscous, and a strong brown in-scattering that hides the bottom within a few centimetres.