We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799e3cd commit ce56284Copy full SHA for ce56284
src/bsdfs/mask.cpp
@@ -153,6 +153,12 @@ class MaskBSDF final : public BSDF<Float, Spectrum> {
153
154
return result;
155
}
156
+
157
+ Spectrum eval_null_transmission(const SurfaceInteraction3f &si,
158
+ Mask active) const override {
159
+ Float opacity = eval_opacity(si, active);
160
+ return 1 - opacity * (1 - m_nested_bsdf->eval_null_transmission(si, active));
161
+ }
162
163
MTS_INLINE Float eval_opacity(const SurfaceInteraction3f &si, Mask active) const {
164
return clamp(m_opacity->eval_1(si, active), 0.f, 1.f);
0 commit comments