hex-world
    Preparing search index...

    Function buildWaterfallFoamGeometry

    • Builds the churning foam pool at the foot of each fall: a flat elliptical fan hugging the receiving channel, wider across than the sheet and stretched downstream, lying just above the water it lands in.

      UVs carry the polar coordinates the foam shader animates in — u is the angle around the impact point, v the normalised radius (0 at the impact point, 1 at the rim, where alpha reaches zero). World-space, like every other chunk geometry.

      Parameters

      Returns BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap> | null