A single node of the BVH, structured following the std430.
More...
#include <bvh.hpp>
A single node of the BVH, structured following the std430.
Internal nodes reference their children through left_child and right_child. Leaf nodes instead describe a run of triangles via first_try and tri_count. The _pad paddings keep the vec3 bounds aligned to 16 bytes layout.
- See also
- buildBVH, uploadBVH
◆ _pad0
◆ _pad1
◆ aabb_max
◆ aabb_min
◆ first_tri
◆ left_child
◆ right_child
◆ tri_count
The documentation for this struct was generated from the following files: