Modules§
Macros§
- cross
- Alternative for
Vec3::cross
. - dot
- Alternative for
Vec3::dot
. - len
- Alternative for
Vec3::len
. - len_sqr
- Alternative for
Vec3::len_sqr
. - normalize
- Alternative for
Vec3::normalize
. - ray
- Shorthand for
Ray::new
. - reflect
- Alternative for
Vec3::reflect
. - refract
- Alternative for
Vec3::refract
. - vec3
- Shorthand for
Vec3::new
.
Structs§
- Camera
- This struct allows to position viewer in the scene.
- Glass
- Glass (dielectric)
Material
. - HitData
- Data struct that holds information about the
Ray
intersection with aShape
. - Matte
- Lambertian (diffuse)
Material
. - Metal
- Metal (solid reflective)
Material
. - Ray
- This struct represents a mathematical ray.
- Shape
List Shape
that is made up of a list of various shapes.- Sphere
Shape
that has properties of a Sphere.- Vec3
- This struct represents a mathematical vector.
Traits§
- Material
- Basic trait that every material must implement.
- Shape
- Basic trait that every scene object must implement.
Functions§
- schlick
- Returns
Schlick's approximation
.