Samplers-Impl.hpp File Reference
Go to the source code of this file.
Namespaces | |
CubbyFlow | |
Functions | |
template<typename T > | |
Vector3< T > | CubbyFlow::UniformSampleCone (T u1, T u2, const Vector3< T > &axis, T angle) |
Returns randomly sampled direction within a cone. More... | |
template<typename T > | |
Vector3< T > | CubbyFlow::UniformSampleHemisphere (T u1, T u2, const Vector3< T > &normal) |
Returns randomly sampled point within a unit hemisphere. More... | |
template<typename T > | |
Vector3< T > | CubbyFlow::CosineWeightedSampleHemisphere (T u1, T u2, const Vector3< T > &normal) |
Returns weighted sampled point on a hemisphere. More... | |
template<typename T > | |
Vector3< T > | CubbyFlow::UniformSampleSphere (T u1, T u2) |
Returns randomly a point on a sphere. More... | |
template<typename T > | |
Vector2< T > | CubbyFlow::UniformSampleDisk (T u1, T u2) |
Returns randomly a point on a disk. More... | |