| 101 | //////////////////////////////////////////////////////////////////////////////// |
| 102 | |
| 103 | inline Vec3fa uniformSampleCone(const float cosAngle, const Vec2f &s) |
| 104 | { |
| 105 | const float phi =float(two_pi) * s.x; |
| 106 | const float cosTheta = 1.0f - s.y * (1.0f - cosAngle); |
| 107 | return cartesian(phi, cosTheta); |
| 108 | } |
| 109 | |
| 110 | inline float uniformSampleConePDF(const float cosAngle) |
| 111 | { |
no test coverage detected