Skip to content

IDragnev/ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray-tracer

A simple ray tracer based on the books of Peter Shirley. It ouputs a ppm file.

Usage

No scene description is supported at the moment. There are three examples scenes which are used for debugging:

  • Cornell box (--scene=cornell-box)
  • Scene of many randomly generates spheres (--scene=random-spheres)
  • Scene with marble spheres and an area light source (--scene=simple-light)

Example:
$ ray-tracer out.txt --height=600 --width=600 --samples=64 --scene=simple-light

Which produces:

Image description

Run $ ray-tracer --help for more information.

About

A simple ray tracer based on the books of Peter Shirley.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages