提交 08b9d33b 编写于 作者: M Matt Pharr

Small fixes to PBRT_DBG calls in pbrt/wavefront/

上级 e6a13b27
......@@ -22,7 +22,7 @@ void WavefrontPathIntegrator::UpdateFilm() {
SampledSpectrum Lw = SampledSpectrum(pixelSampleState.L[pixelIndex]) *
pixelSampleState.cameraRayWeight[pixelIndex];
PBRT_DBG("Adding Lw %f %f %f %f at pixel (%d, %d)", Lw[0], Lw[1], Lw[2],
PBRT_DBG("Adding Lw %f %f %f %f at pixel (%d, %d)\n", Lw[0], Lw[1], Lw[2],
Lw[3], pPixel.x, pPixel.y);
// Provide sample radiance value to film
SampledWavelengths lambda = pixelSampleState.lambda[pixelIndex];
......
......@@ -498,12 +498,14 @@ void WavefrontPathIntegrator::HandleEscapedRays() {
for (const auto &light : *infiniteLights) {
if (SampledSpectrum Le = light.Le(Ray(w.rayo, w.rayd), w.lambda); Le) {
// Compute path radiance contribution from infinite light
PBRT_DBG("L %f %f %f %f beta %f %f %f %f Le %f %f %f %f", L[0], L[1],
PBRT_DBG("L %f %f %f %f beta %f %f %f %f Le %f %f %f %f\n", L[0], L[1],
L[2], L[3], w.beta[0], w.beta[1], w.beta[2], w.beta[3],
Le[0], Le[1], Le[2], Le[3]);
PBRT_DBG("pdf uni %f %f %f %f pdf nee %f %f %f %f", w.inv_w_u[0],
w.inv_w_u[1], w.inv_w_u[2], w.inv_w_u[3], w.inv_w_l[0],
w.inv_w_l[1], w.inv_w_l[2], w.inv_w_l[3]);
PBRT_DBG("depth %d specularBounce %d pdf uni %f %f %f %f "
"pdf nee %f %f %f %f\n",
w.depth, w.specularBounce,
w.inv_w_u[0], w.inv_w_u[1], w.inv_w_u[2], w.inv_w_u[3],
w.inv_w_l[0], w.inv_w_l[1], w.inv_w_l[2], w.inv_w_l[3]);
if (w.depth == 0 || w.specularBounce) {
L += w.beta * Le / w.inv_w_u.Average();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册