Crates.io | rayimg |
lib.rs | rayimg |
version | 0.1.2 |
source | src |
created_at | 2022-05-20 05:43:47.285086 |
updated_at | 2022-06-18 18:49:02.41992 |
description | Renders image of some scene using ray tracing. |
homepage | |
repository | https://github.com/ivan0sokin/rayimg |
max_upload_size | |
id | 590082 |
size | 24,716,754 |
Renders image of some scene using ray tracing.
This project is Rust adaption of Ray Tracing in One Weekend e-book by Peter Shirley
Add following to your Cargo.toml
:
[dependencies]
rayimg = "0.1.2"
Rendered images from tests can be found in tests/output
and in examples/output
directories.
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
To run benchmarks you should install rustup nightly toolchain and then enter:
rustup run nightly cargo bench
You can find documentation at docs.rs.
Ray image is licensed under the Apache 2.0/MIT license.