diff --git a/src/bsdfs/measured_polarized.cpp b/src/bsdfs/measured_polarized.cpp index ec6e5067c..96724e892 100644 --- a/src/bsdfs/measured_polarized.cpp +++ b/src/bsdfs/measured_polarized.cpp @@ -183,7 +183,7 @@ class MeasuredPolarized final : public BSDF { Float cos_theta_i = Frame3f::cos_theta(si.wi); active &= cos_theta_i > 0.f; - BSDFSample3f bs; + BSDFSample3f bs = dr::zeros(); if (unlikely(dr::none_or(active) || !ctx.is_enabled(BSDFFlags::GlossyReflection))) return { bs, 0.f };