Generate n cosine-weighted unit direction vectors over the upper hemisphere (Z >= 0). Uses the Hammersley low-discrepancy sequence for stratification at small n.
n
Returned as a flat Float32Array of length n * 3.
Float32Array
n * 3
Generate
ncosine-weighted unit direction vectors over the upper hemisphere (Z >= 0). Uses the Hammersley low-discrepancy sequence for stratification at smalln.Returned as a flat
Float32Arrayof lengthn * 3.