提交 8f6faf4e 编写于 作者: M Matt Pharr

Add TODO about RR for media

上级 af327fa3
......@@ -288,6 +288,9 @@ void GPUPathIntegrator::SampleMediumInteraction(int depth) {
SampledSpectrum pdfNEE = ms.pdfUni;
// Russian roulette
// TODO: should we even bother? Generally beta/pdfUni is one here,
// due to the way scattering events are scattered and because we're
// sampling exactly from the phase function's distribution...
SampledSpectrum rrBeta = beta * ms.etaScale / pdfUni.Average();
if (rrBeta.MaxComponentValue() < 1 && depth > 1) {
Float q = std::max<Float>(0, 1 - rrBeta.MaxComponentValue());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册