I'm trying to output indirect illumination separately on the photon mapper. However printing pixel.tau / (np * Pi * Sqr(pixel.radius)) gives negative values for some of the RGB channels. I tried to trace the value back and it seem like RGB Phi_i = film.ToOutputRGB(pixel.vp.beta * Phi, photonLambda) is returning negative values.
Is this expected behavior? The final images still look correct to me so I'm a bit confused.
I'm trying to output indirect illumination separately on the photon mapper. However printing
pixel.tau / (np * Pi * Sqr(pixel.radius))
gives negative values for some of the RGB channels. I tried to trace the value back and it seem likeRGB Phi_i = film.ToOutputRGB(pixel.vp.beta * Phi, photonLambda)
is returning negative values.Is this expected behavior? The final images still look correct to me so I'm a bit confused.