kdtree-ray

github crates.io docs.rs


This crate is a fast implementation of KD-Tree for raytracer (or other rendering method using ray).

It's based on this paper written by Ingo Wald and Vlastimil Havran.

For more information on how this library is implemented check out my article.

Installation

To install it, just add the dependency in your Cargo.toml.

toml [dependencies] kdtree-ray="1.1.0"

Usage

Examples of use: