Skip to content

matklad/rustraytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

A ray tracer written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages