diff --git a/src/base/geometry.cpp b/src/base/geometry.cpp index d715fc25..22ae715c 100644 --- a/src/base/geometry.cpp +++ b/src/base/geometry.cpp @@ -127,8 +127,8 @@ void Geometry::_process_shape( } // emplace instance here since we need to know the opaque property - _accel.emplace_back(*mesh.resource, object_to_world, visible, false); - //(properties & Shape::property_flag_maybe_non_opaque) == 0u); + _accel.emplace_back(*mesh.resource, object_to_world, visible, + (properties & Shape::property_flag_maybe_non_opaque) == 0u); auto light_tag = 0u; auto medium_tag = 0u; @@ -201,7 +201,7 @@ Var Geometry::trace_closest(const Var &ray) const noexcept { $if(it->shape().maybe_non_opaque() & it->shape().has_surface()) { PolymorphicCall call; _pipeline.surfaces().dispatch(it->shape().surface_tag(), [&](auto surface) noexcept { - if(surface->maybe_non_opaque()) { + if (surface->maybe_non_opaque()) { // TODO: pass the correct time surface->closure(call, *it, _pipeline.spectrum()->sample(.5f), -ray->direction(), 1.f, 0.f); } else { @@ -243,7 +243,7 @@ Var Geometry::trace_any(const Var &ray) const noexcept { $if(it->shape().maybe_non_opaque() & it->shape().has_surface()) { PolymorphicCall call; _pipeline.surfaces().dispatch(it->shape().surface_tag(), [&](auto surface) noexcept { - if(surface->maybe_non_opaque()) { + if (surface->maybe_non_opaque()) { // TODO: pass the correct time surface->closure(call, *it, _pipeline.spectrum()->sample(.5f), -ray->direction(), 1.f, 0.f); } else {