You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We don't allow non watertight transmitters in this renderer, one cannot reach a light from the backface (optimization)
110
105
111
106
// While NEE or other generators are not supposed to pick up Delta lobes by accident, we need the MIS weights to add up to 1 for the non-delta lobes.
112
107
// So we need to weigh the Delta lobes as if the MIS weight is always 1, but other areas regularly.
113
108
// Meaning that eval's pdf should equal quotient's pdf , this way even the diffuse contributions coming from within a specular lobe get a MIS weight near 0 for NEE.
114
109
// This stops a discrepancy in MIS weights and NEE mistakenly trying to add non-delta lobe contributions with a MIS weight > 0 and creating energy from thin air.
115
110
if (neeContrib.pdf > scalar_type(0.0))
116
111
{
117
-
// we'll need an `eval_and_mis_weight` and `quotient_and_mis_weight`
0 commit comments