jalberse / shimmer

Physically based rendering in Rust
Apache License 2.0
33 stars 0 forks source link

Bvh #32

Closed jalberse closed 8 months ago

jalberse commented 8 months ago

We'll want better splitting methods for BVH in the future, and there's still some TODOs such as parallelizing construction (with Rayon, that shouldn't actually be that hard), but this is a working implementation with pretty good test coverage. It should be sufficient for getting us on the correct order of magnitude for ray-scene intersection complexity.

Also includes some bug fixes for other modules, including some for Transform (darn transposed assignments...) and some floating point accuracy fixes for Ray transforms and Sphere intersections.