Crates.io | pbrt |
lib.rs | pbrt |
version | 0.1.5 |
source | src |
created_at | 2019-01-06 01:16:45.019412 |
updated_at | 2019-12-22 01:24:54.090584 |
description | Rust implementation of https://pbrt.org/ |
homepage | |
repository | https://github.com/wathiede/pbrt |
max_upload_size | |
id | 105766 |
size | 271,034 |
This is not an officially supported Google product. This is a personal project, it serves as a learning experience for both: programming in rust, and writing a ray-tracer. If either of these things are interesting to you, then you may like this project.
This is a rust implementation of the physics based ray tracer documented in 'Physically Based Rendering, Third Edition' http://www.pbrt.org/
If you're looking for a more fully-formed implementation, check out https://github.com/wahn/rs_pbrt
Default
, or
helpfully named constructors like identity
. Type changing constructors
should implement
From
.pbrt.h
's functionality has been put in lib.rs
. This is a different location from the C++ implmentation. It allows usage like use pbrt::Float;
instead of the more stuttery use pbrt::core::pbrt::Float;
Inside
and InsideExclusive
are members on Bounds[23]<T>
to overcome
differences in parameter overloading abilities between C++ and rust.