Loading...
Searching...
No Matches
Samplers.hpp File Reference
Go to the source code of this file.
Namespaces | |
| namespace | 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. | |
| template<typename T > | |
| Vector3< T > | CubbyFlow::UniformSampleHemisphere (T u1, T u2, const Vector3< T > &normal) |
| Returns randomly sampled point within a unit hemisphere. | |
| template<typename T > | |
| Vector3< T > | CubbyFlow::CosineWeightedSampleHemisphere (T u1, T u2, const Vector3< T > &normal) |
| Returns weighted sampled point on a hemisphere. | |
| template<typename T > | |
| Vector3< T > | CubbyFlow::UniformSampleSphere (T u1, T u2) |
| Returns randomly a point on a sphere. | |
| template<typename T > | |
| Vector2< T > | CubbyFlow::UniformSampleDisk (T u1, T u2) |
| Returns randomly a point on a disk. | |
1.9.8