![]() |
Path Tracing
|
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 |
| uniform vec3 mesh_aabb_max |
| 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 int triangle_count |
Pre-calculated count to avoid unnecessary operations in the GPU runtime Used in intersects triangles loop