Path Tracing
Loading...
Searching...
No Matches
AABB Early rejection

Variables

uniform vec3 mesh_aabb_min
 Bounding box of the loaded mesh to skip the triangle loop for rays that don't interact with the model. Improves performance.
uniform vec3 mesh_aabb_max
uniform int triangle_count

Detailed Description

Variable Documentation

◆ mesh_aabb_max

uniform vec3 mesh_aabb_max

◆ mesh_aabb_min

uniform vec3 mesh_aabb_min

Bounding box of the loaded mesh to skip the triangle loop for rays that don't interact with the model. Improves performance.

See also
intersects, loadMesh

◆ triangle_count

uniform int triangle_count

Pre-calculated count to avoid unnecessary operations in the GPU runtime Used in intersects triangles loop