Expand description
GPU ray tracing (CPU mock implementation).
Provides BVH construction, ray-AABB intersection (slab method), ray-triangle intersection (Möller-Trumbore), and BVH traversal.
Structs§
- Aabb
- Axis-aligned bounding box (AABB).
- BvhNode
- A node in the bounding volume hierarchy.
- HitRecord
- Result of a ray-triangle intersection test.
- Ray
- A ray defined by an origin and a direction.
- Triangle
- A triangle defined by three vertices.
Functions§
- batch_
ray_ cast - Cast multiple rays against a BVH and return the closest hit for each.
- build_
bvh - Build a BVH from a list of triangles using bottom-up SAH-lite construction.
- ray_
aabb_ intersect - Test whether a ray intersects an AABB using the slab method.
- ray_
triangle_ intersect - Test whether a ray intersects a triangle using the Möller-Trumbore algorithm.
- traverse_
bvh - Traverse the BVH to find the closest ray-triangle intersection.