Skip to content

bnaveenkr/rango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rango

Rango is a very simple raytracer written in golang. This is an attempt to learn go.

The first pass is very similar to C raytracer I have written earlier https://github.com/bnaveenkr/raytracer

Some points for performance sake:

  • Image Size: for quick testing, use something like 320x240
  • Recursion Depth: Can be kept 0 for no reflections/refractions
  • Cone and Cylinder can use smaller resolution, default image uses 32
  • Sphere resolution, unlike Cone and Cylinder, is power of 4

How to run

cd raytracer
go build
./raytracer

Output Image

Raytraced Image

About

Rango is a raytracer written in golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages