Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 958 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 958 Bytes

#Intro A simple ray tracer written in Rust.

#Install rust http://www.rust-lang.org/install.html

#Build & run cargo run --release (that's all, really =)

#Overview

Project is at the early stage (as always), but the current structure is as follows.

  • libs/geom -- basic geometric building blocks. A nice place to start reading. Also includes bounding volume hierarchy tree in libs/geom/src/shape/mesh
  • src -- source code and some embedded test (#[test])
  • src/scene -- a physical description of the scene, which integrates geometric shapes with materials, lights and colors.
  • src/rendering -- the rendering algorithm, which takes a scene and produces the image. sampler decides which rays to generate, tracer calculates radiance along the rays and filter incorporates results into a single 2D image.
  • src/display -- utilities to display the image (as PPM or to the console).

example