threejs-worldgen
    Preparing search index...

    Function waterPressure

    • Equation-of-state pressure of water at volume ratio J (Tait): p = K·(J^−γ − 1) with J clamped to [WATER_MIN_J, 1]. Compression pushes back; expansion is free (no tension, so spray separates cleanly).

      Parameters

      Returns number