threejs-worldgen
    Preparing search index...

    Function modifierPoint

    • Converts a frame-local point and target height into a modifier point: the base-surface position the world compares against and the elevation it flattens to. Identity on flat worlds; on planets the tangent-plane point is projected onto the sphere and the local height turned into elevation.

      Parameters

      Returns [number, number, number, number]