Skip to content

Commit

Permalink
Fixed names of C_INT and C_TRAV.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Feb 28, 2025
1 parent ad62042 commit 9b60ad3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ THE SOFTWARE.
// These are defaults, which initialize the public members c_int and c_trav in
// BVHBase (and thus each BVH instance).
#ifndef C_INT
#define C_INT_ 1
#define C_INT 1
#endif
#ifndef C_TRAV
#define C_TRAV_ 1
#define C_TRAV 1
#endif

// SBVH: "Unsplitting"
Expand Down Expand Up @@ -663,8 +663,8 @@ class BVHBase
uint32_t usedNodes = 0; // number of nodes used for the BVH.
uint32_t triCount = 0; // number of primitives in the BVH.
uint32_t idxCount = 0; // number of primitive indices; can exceed triCount for SBVH.
float c_trav = C_TRAV_; // cost of a traversal step, used to steer SAH construction.
float c_int = C_INT_; // cost of a primitive intersection, used to steer SAH construction.
float c_trav = C_TRAV; // cost of a traversal step, used to steer SAH construction.
float c_int = C_INT; // cost of a primitive intersection, used to steer SAH construction.
bvhvec3 aabbMin, aabbMax; // bounds of the root node of the BVH.
// Custom memory allocation
void* AlignedAlloc( size_t size );
Expand Down

0 comments on commit 9b60ad3

Please sign in to comment.