Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::lta::RussianRoulette Class Referencefinal

Russian roulette random termination scheme. More...

#include <RussianRoulette.h>

Public Member Functions

bool surviveOnLuminance (const math::Spectrum &s, SampleFlow &sampleFlow, real *out_survivalProbability) const
 

Detailed Description

Russian roulette random termination scheme.

Member Function Documentation

◆ surviveOnLuminance()

bool ph::lta::RussianRoulette::surviveOnLuminance ( const math::Spectrum & s,
SampleFlow & sampleFlow,
real * out_survivalProbability ) const
inline
Parameters
sThe spectrum to play russian roulette. The survival rate is higher with higher luminance.
sampleFlowThe source of randomness.
Returns
Whether the input spectrum s survived. If false is returned, the spectrum "died" and all output parameters are not usable.

The documentation for this class was generated from the following file: