Full threadgattr·As for choosing random 3D directions with various distributions (and more), the Global Illumination Compendium [1] has a lot of useful formulas.[1] https://people.cs.kuleuven.be/~philip.dutre/GI/View on HN