Crate pbrt

Source
Expand description

pbrt is a rust implementation of http://www.pbr-book.org/3ed-2018/contents.html

Re-exports§

pub use float::Float;

Modules§

core
The main parts of the PBRT renderer are located in sub crates of core. This top-level crate has no public functionality.
filters
Various implementations of Filter for use during sampling.
float
submodule to defined types, constants and methods when Float is defined as a f32 when not using the “float-as-double” cargo feature.
textures
Implementations Texture for various texture mapping algorithms.

Macros§

severe
Calls log::error then panic!.

Structs§

Degree
Wrapper type for Float to ensure degree vs radian is clear.
Options
Options for the renderer. These are mostly passed through from commandline flags or from the configuration file parsed.

Functions§

assert_almost_equal_options
Note: assert_almost_equal_options exists only for doc tests, it is not part of the pbrt API.
clamp
Clamp val between low and high.
gamma_correct
Convert value into sRGB gamma-corrected value.
lerp
Linear interpolate t between v1 and v2.
quadratic
Find roots of quadratic equation, if they exist.