Skip to content

Commit

Permalink
!hit => hit != true
Browse files Browse the repository at this point in the history
  • Loading branch information
kugimasa committed Aug 23, 2023
1 parent f40de07 commit 241e1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/shader/compute-sample.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ fn intersect_tri(r: Ray, id: u32, closest: HitInfo) -> HitInfo {
hit = ray_dist < closest.dist &&
(0.0 <= u && u <= 1.0) &&
(0.0 <= v && (u + v) <= 1.0);
if (!hit) {
if (hit != true) {
return closest;
}
return HitInfo(
Expand Down

0 comments on commit 241e1b7

Please sign in to comment.