Expand description
rpt
is a path tracer in Rust.
Re-exports§
Structs§
- Bounding
Box - A 3D axis-aligned bounding box
- Buffer
- A buffer that stores sample results from path tracing
- Camera
- A simple thin-lens perspective camera
- Cube
- A unit cube centered at the origin
- Hdri
- High-dynamic-range equirectangular image for lighting 3D scenes
- HitRecord
- Record of when a hit occurs, and the corresponding normal
- KdTree
- A kd-tree based on bounding boxes, used to accelerate ray intersections
- Marbles
System - System that represents marbles and a glass
- Material
- Represents a shader material with some physical properties
- Monomial
Surface - Represents a glass-shaped surface with height and exp parameters
- Object
- An object rendered in a scene
- Particle
State - Represents current state of a particle system, including positions and velocities
- Plane
- A plane represented by the linear equation x • normal = value
- Ray
- An infinite ray in one direction
- Renderer
- Builder object for rendering a scene
- Scene
- Object representing a scene that can be rendered
- Solid
Gravity System - System that represents solid gravity objects in space
- Sphere
- A unit sphere centered at the origin
- Transformed
- A shape that has been composed with a transformation
- Triangle
- A triangle with three vertices and three normals
Enums§
- Environment
- An environment map for lighting 3D scenes
- Filter
- A noise reduction filter applied to the rendered image
- Light
- Type representing various forms of lighting
Traits§
- Bounded
- A geometric shape with a bounding box (needed for kd-tree intersections)
- Particle
System - A trait that represents a system formulating some physical laws
- Scene
Add - Trait that allows adding an object or light to a scene
- Shape
- Represents a physical shape, which can be hit by a ray to find intersections
- Transformable
- An object that can be transformed
Functions§
- color_
bytes - Convert a color to a clamped triple of sRGB unsigned bytes
- cube
- Helper function to construct a cube
- hex_
color - Construct a new color from an sRGB hex integer, applying gamma correction to return linear intensities
- load_
obj - Load a mesh geometry from a Wavefront .OBJ file
- load_
obj_ with_ mtl - Load an object, with materials, from a Wavefront .OBJ file
- load_
stl - Load a mesh from a .STL file
- monomial_
surface - Helper function to construct a glass-like monomial surface
- plane
- Helper function to construct a plane
- polygon
- Helper function to construct a simple polygon made from triangles
- sphere
- Helper function to construct a sphere