Module bvh::bvh [] [src]

This module defines a BVH building procedure as well as a BVH flattening procedure so that the recursive structure can be easily used in compute shaders.

Structs

BVH

The BVH data structure. Only contains the root node of the BVH tree.

Enums

BVHNode

Enum which describes the union type of a node in a BVH. This structure does not allow for storing a root node's AABB. Therefore rays which do not hit the root AABB perform two AABB tests (left/right) instead of one. On the other hand this structure decreases the total number of indirections when traversing the BVH. Only those nodes are accessed, which are definetely hit.