Skip to content

Commit

Permalink
ray4: add missing reflect/refract stats count
Browse files Browse the repository at this point in the history
  • Loading branch information
hollasch committed Nov 3, 2024
1 parent 7a3b668 commit 4c22766
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ray4/src/r4_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ void RayTrace (

Color Tcolor; // Transparent Color
RayTrace (Ray4(nearintr, RefrD), Tcolor, level);
++stats.Nrefract;

color += nearattr->Kt * Tcolor;
}
Expand All @@ -217,6 +218,7 @@ void RayTrace (

Color Rcolor; // Reflected Color
RayTrace (Ray4(nearintr, ReflD), Rcolor, level);
++stats.Nreflect;

color += nearattr->Ks * Rcolor;
}
Expand Down

0 comments on commit 4c22766

Please sign in to comment.