It yields the objects that the ray needs to be tested against. Thus it is the responsibility of the code using the iterator to actually do the object-level ray tests and update the ray's max_t etc. accordingly. This keeps all of the BVH-related code generic with respect to what kind of object/data the BVH actually contains, which means the same BVH code can be used for both scene-level and triangle-level data. |
||
---|---|---|
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
todo.txt |