• Generate n cosine-weighted unit direction vectors over the upper hemisphere (Z >= 0). Uses the Hammersley low-discrepancy sequence for stratification at small n.

    Returned as a flat Float32Array of length n * 3.

    Parameters

    • n: number

    Returns Float32Array