| 50 | } |
| 51 | |
| 52 | static float HemisphereMonteCarloFactor(uint64 numSamples) |
| 53 | { |
| 54 | // The area of a unit hemisphere is 2 * Pi, so the PDF is 1 / (2 * Pi) |
| 55 | return ((2.0f * Pi) / numSamples); |
| 56 | } |
| 57 | |
| 58 | static float SphereMonteCarloFactor(uint64 numSamples) |
| 59 | { |
no outgoing calls
no test coverage detected