Closed deadmarston closed 4 years ago
The normal and wi may be on different sides of the surface, in which case Dot
would give a negative value. (pbrt doesn't flip the normal to match wi
's side, so that the normal orientation can still be used to determine if a ray is entering or exiting a surface, under the assumption that the normal points outside..)
Thanks:)
Hi there,
In the rendering part, you use
beta *= f * AbsDot(wi, isect.shading.n) / pdf;
, I wonder why you don't use Dot since that seems to be correct value for cosTheta.Thanks