Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Jan 13, 2024
1 parent f8cb3cc commit 5987920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ void Geometry::_alpha_skip(SurfaceCandidate &c) const noexcept {
auto bary = make_float3(1.f - hit.bary.x - hit.bary.y, hit.bary);
auto it = interaction(hit.inst, hit.prim, bary, -ray->direction());
$if(it->shape().maybe_non_opaque() & it->shape().has_surface()) {
auto u = xxhash32(make_uint4(hit.inst, hit.prim, compute::as<uint2>(hit.bary))) * 0x1p-32f;
auto h = xxhash32(make_uint4(hit.inst, hit.prim, compute::as<uint2>(hit.bary)));
auto u = min(h * 0x1p-32f, one_minus_epsilon);
$switch(it->shape().surface_tag()) {
for (auto i = 0u; i < _pipeline.surfaces().size(); i++) {
if (auto surface = _pipeline.surfaces().impl(i);
Expand Down

0 comments on commit 5987920

Please sign in to comment.