Crate rpt

Source
Expand description

rpt is a path tracer in Rust.

Re-exports§

Structs§

  • A 3D axis-aligned bounding box
  • A buffer that stores sample results from path tracing
  • A simple thin-lens perspective camera
  • A unit cube centered at the origin
  • High-dynamic-range equirectangular image for lighting 3D scenes
  • Record of when a hit occurs, and the corresponding normal
  • A kd-tree based on bounding boxes, used to accelerate ray intersections
  • System that represents marbles and a glass
  • Represents a shader material with some physical properties
  • Represents a glass-shaped surface with height and exp parameters
  • An object rendered in a scene
  • Represents current state of a particle system, including positions and velocities
  • A plane represented by the linear equation x • normal = value
  • An infinite ray in one direction
  • Builder object for rendering a scene
  • Object representing a scene that can be rendered
  • System that represents solid gravity objects in space
  • A unit sphere centered at the origin
  • A shape that has been composed with a transformation
  • A triangle with three vertices and three normals

Enums§

  • An environment map for lighting 3D scenes
  • A noise reduction filter applied to the rendered image
  • Type representing various forms of lighting

Traits§

  • A geometric shape with a bounding box (needed for kd-tree intersections)
  • A trait that represents a system formulating some physical laws
  • Trait that allows adding an object or light to a scene
  • Represents a physical shape, which can be hit by a ray to find intersections
  • An object that can be transformed

Functions§

  • Convert a color to a clamped triple of sRGB unsigned bytes
  • Helper function to construct a cube
  • Construct a new color from an sRGB hex integer, applying gamma correction to return linear intensities
  • Load a mesh geometry from a Wavefront .OBJ file
  • Load an object, with materials, from a Wavefront .OBJ file
  • Load a mesh from a .STL file
  • Helper function to construct a glass-like monomial surface
  • Helper function to construct a plane
  • Helper function to construct a simple polygon made from triangles
  • Helper function to construct a sphere

Type Aliases§

  • A representation of an RGB color
  • A triangle mesh, stored using a kd-tree