#ray-tracing #image #scene #renders #testing

rayimg

Renders image of some scene using ray tracing

13 releases

0.1.2 Jun 18, 2022
0.1.1 Jun 14, 2022
0.0.11 May 21, 2022
0.0.10 Jun 9, 2022

#566 in Graphics APIs

30 downloads per month

MIT/Apache

2MB
840 lines

version license build

Ray image

About

Renders image of some scene using ray tracing.
This project is Rust adaption of Ray Tracing in One Weekend e-book by Peter Shirley

Usage

Add following to your Cargo.toml:

[dependencies]
rayimg = "0.1.2"

Renders

Rendered images from tests can be found in tests/output and in examples/output directories.

Tests

To run tests type following in the shell:

cargo test --doc
cargo test --tests --release
cargo test --examples

Examples can be compiled and executed by typing next:

cargo run --examples (examples name or nothing to see available examples) --release

Benchmarks

To run benchmarks you should install rustup nightly toolchain and then enter:

rustup run nightly cargo bench

Documentation

You can find documentation at docs.rs.

Dependencies

Rand

License

Ray image is licensed under the Apache 2.0/MIT license.

Dependencies