Docs.rs
photo-1.0.0
photo 1.0.0
Permalink
Docs.rs crate page
MIT
Links
Documentation
Repository
crates.io
Source
Owners
FreddyWordingham
Dependencies
enterpolation ^0.2.1
normal
image ^0.24.7
normal
indicatif ^0.17.7
normal
nalgebra ^0.32.3
normal
ndarray ^0.15.6
normal
palette ^0.7.3
normal
serde ^1.0.193
normal
serde_yaml ^0.9.29
normal
Versions
88.24%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
photo
1.0.0
Module engine
Functions
Type Aliases
In crate photo
?
Module
photo
::
engine
source
·
[
−
]
Expand description
Rendering engine module.
Functions
ambient
Render the surface
Material
[
Spectrum
] when
Ray
s intersect with the
Scene
, lighting the scene with a single sun light source.
diffuse
Render the surface
Material
[
Spectrum
] when
Ray
s intersect with the
Scene
, lighting the scene with a single sun light source, casting shadows.
distance
Render the distance travelled by
Ray
s that intersect with the
Scene
.
full
Render the surface
Material
[
Spectrum
] when
Ray
s intersect with the
Scene
, lighting the scene with a single sun light source, casting shadows with reflections.
normal
Render the surface normals when
Ray
s intersect with the
Scene
.
occlusion
Local occlusion shadowing rendering [
Engine
] function.
side
Render the surface
Material
Spectrum
when
Ray
s intersect with the
Scene
, colour blue for the outside, and red for the inside.
stencil
Stencil whether the
Ray
intersects with the
Scene
.
test
Test rendering [
Engine
] function.
xray
Colour by the number of times a
Ray
intersects with the
Scene
.
Type Aliases
Engine