Photon Engine 2.0.0-beta
A physically based renderer.
|
Russian roulette random termination scheme. More...
#include <RussianRoulette.h>
Public Member Functions | |
bool | surviveOnLuminance (const math::Spectrum &s, SampleFlow &sampleFlow, real *out_survivalProbability) const |
Russian roulette random termination scheme.
|
inline |
s | The spectrum to play russian roulette. The survival rate is higher with higher luminance. |
sampleFlow | The source of randomness. |
s
survived. If false
is returned, the spectrum "died" and all output parameters are not usable.