Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Jan 13, 2024
2 parents 56fe0a0 + a470b03 commit f50aeef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/base/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -201,7 +201,7 @@ Var<Hit> Geometry::trace_closest(const Var<Ray> &ray) const noexcept {
$if(it->shape().maybe_non_opaque() & it->shape().has_surface()) {
PolymorphicCall<Surface::Closure> 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 {
Expand Down Expand Up @@ -243,7 +243,7 @@ Var<bool> Geometry::trace_any(const Var<Ray> &ray) const noexcept {
$if(it->shape().maybe_non_opaque() & it->shape().has_surface()) {
PolymorphicCall<Surface::Closure> 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 {
Expand Down

0 comments on commit f50aeef

Please sign in to comment.