improved comments
parent
ad02615d34
commit
809c81057b
|
@ -62,14 +62,14 @@ public:
|
||||||
/* Radiative Transfer Equation sampling */
|
/* Radiative Transfer Equation sampling */
|
||||||
/* ==================================================================== */
|
/* ==================================================================== */
|
||||||
if (rRec.medium && rRec.medium->sampleDistance(Ray(ray, 0, its.t), mRec, rRec.sampler)) {
|
if (rRec.medium && rRec.medium->sampleDistance(Ray(ray, 0, its.t), mRec, rRec.sampler)) {
|
||||||
|
/* Sample the integral
|
||||||
|
\int_x^y tau(x, x') [ \sigma_s \int_{S^2} \rho(\omega,\omega') L(x,\omega') d\omega' ] dx'
|
||||||
|
*/
|
||||||
const PhaseFunction *phase = rRec.medium->getPhaseFunction();
|
const PhaseFunction *phase = rRec.medium->getPhaseFunction();
|
||||||
|
|
||||||
if (rRec.depth == m_maxDepth && m_maxDepth > 0) // No more scattering events allowed
|
if (rRec.depth == m_maxDepth && m_maxDepth > 0) // No more scattering events allowed
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Sample the integral
|
|
||||||
\int_x^y tau(x, x') [ \sigma_s \int_{S^2} \rho(\omega,\omega') L(x,\omega') d\omega' ] dx'
|
|
||||||
*/
|
|
||||||
pathThroughput *= mRec.sigmaS * mRec.transmittance / mRec.pdfSuccess;
|
pathThroughput *= mRec.sigmaS * mRec.transmittance / mRec.pdfSuccess;
|
||||||
|
|
||||||
/* ==================================================================== */
|
/* ==================================================================== */
|
||||||
|
|
|
@ -63,11 +63,11 @@ public:
|
||||||
/* Radiative Transfer Equation sampling */
|
/* Radiative Transfer Equation sampling */
|
||||||
/* ==================================================================== */
|
/* ==================================================================== */
|
||||||
if (rRec.medium && rRec.medium->sampleDistance(Ray(ray, 0, its.t), mRec, rRec.sampler)) {
|
if (rRec.medium && rRec.medium->sampleDistance(Ray(ray, 0, its.t), mRec, rRec.sampler)) {
|
||||||
const PhaseFunction *phase = rRec.medium->getPhaseFunction();
|
|
||||||
|
|
||||||
/* Sample the integral
|
/* Sample the integral
|
||||||
\int_x^y tau(x, x') [ \sigma_s \int_{S^2} \rho(\omega,\omega') L(x,\omega') d\omega' ] dx'
|
\int_x^y tau(x, x') [ \sigma_s \int_{S^2} \rho(\omega,\omega') L(x,\omega') d\omega' ] dx'
|
||||||
*/
|
*/
|
||||||
|
const PhaseFunction *phase = rRec.medium->getPhaseFunction();
|
||||||
|
|
||||||
pathThroughput *= mRec.sigmaS * mRec.transmittance / mRec.pdfSuccess;
|
pathThroughput *= mRec.sigmaS * mRec.transmittance / mRec.pdfSuccess;
|
||||||
|
|
||||||
/* ==================================================================== */
|
/* ==================================================================== */
|
||||||
|
|
Loading…
Reference in New Issue