+ | Small opti

This commit is contained in:
RedShip
2025-01-24 19:54:14 +01:00
parent c050caa789
commit 6378ed0737
17 changed files with 119432 additions and 676 deletions

View File

@ -71,7 +71,7 @@ hitInfo traceBVH(Ray ray, GPUBvhData bvh_data)
int current_index = stack[stack_ptr--];
GPUBvh node = Bvh[bvh_data.bvh_start_index + current_index];
if (node.is_leaf != 0)
if (node.primitive_count != 0)
{
for (int i = 0; i < node.primitive_count; i++)
{