|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
KD Tree accelerator parameters. More...
#include <tinypbrt/detail/accelerator.h>
Data Fields | |
| tpbrt_uint_t | intersect_cost |
| The value of the cost function that estimates the expected cost of performing a ray-object intersection, for use in building the kd-tree. | |
| tpbrt_uint_t | traversal_cost |
| Estimated cost for traversing a ray through a kd-tree node. | |
| tpbrt_float_t | empty_bonus |
| "Bonus" factor for kd-tree nodes that represent empty space. | |
| tpbrt_uint_t | max_prims |
| Maximum number of primitives to store in kd-tree node. (Not a hard limit; more may be stored if the kd-tree can't find splitting planes that reduce the number of primitives when refining a node.) | |
| tpbrt_int_t | max_depth |
| Maximum depth of the kd-tree. If negative, the kd-tree chooses a maximum depth based on the number of primitives to be stored in it. | |
KD Tree accelerator parameters.
| tpbrt_uint_t tpbrt_accelerator_kd_tree_params_t::intersect_cost |
The value of the cost function that estimates the expected cost of performing a ray-object intersection, for use in building the kd-tree.
| tpbrt_uint_t tpbrt_accelerator_kd_tree_params_t::traversal_cost |
Estimated cost for traversing a ray through a kd-tree node.
| tpbrt_float_t tpbrt_accelerator_kd_tree_params_t::empty_bonus |
"Bonus" factor for kd-tree nodes that represent empty space.
| tpbrt_uint_t tpbrt_accelerator_kd_tree_params_t::max_prims |
Maximum number of primitives to store in kd-tree node. (Not a hard limit; more may be stored if the kd-tree can't find splitting planes that reduce the number of primitives when refining a node.)
| tpbrt_int_t tpbrt_accelerator_kd_tree_params_t::max_depth |
Maximum depth of the kd-tree. If negative, the kd-tree chooses a maximum depth based on the number of primitives to be stored in it.