fastest 3D software for linux

Linux 3D
interactive ray-tracing
[1 introduction] [2 overview] [3 reference] [4 GUI]

Index

 _HemisphereSampleCosineWeight


_HemisphereSampleCosineWeight

Generate a unit vector along a hemisphere with cosine-weighted distribution

Syntax
static inline void _HemisphereSampleCosineWeight(const E3dCoordinate PU, const E3dCoordinate PV, E3dCoord3* PResult)

Arguments
LU and LV Uuniform parameters (0..1) LResult The resulting unit vector
Description
This function uses a default orientation: LTangent = { 1.0, 0.0, 0.0 }, LBitangent = { 0.0, 1.0, 0.0 }, LNormal = { 0.0, 0.0, 1.0 }

Return value
None.
© 1996-2022 By Gabor Nagy