[![codecov](https://codecov.io/gh/Godzil/DoRayMe/branch/master/graph/badge.svg)](https://codecov.io/gh/Godzil/DoRayMe) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/66339747e4a843719cba29cf5e31ff90)](https://www.codacy.com/manual/Godzil/DoRayMe?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Godzil/DoRayMe&amp;utm_campaign=Badge_Grade) [![Coverage Status](https://coveralls.io/repos/github/Godzil/DoRayMe/badge.svg?branch=master)](https://coveralls.io/github/Godzil/DoRayMe?branch=master) [![Build Status](https://travis-ci.org/Godzil/DoRayMe.svg?branch=master)](https://travis-ci.org/Godzil/DoRayMe)

DoRayMe
=======

A Quick and dirty raytracer.


This raytracer is made following the book "[The Ray Tracer Challenge](https://pragprog.com/book/jbtracer/the-ray-tracer-challenge)" by Jamis Buck.

It is writen in C++ with no STL and use [LodePNG](https://github.com/lvandeve/lodepng) to output PNG file.


Examples outputs
----------------

From chapter 05 - Sphere intersections:

![Chapter 5 rendering test](output/ch5_test.png)

From Chapter 06 - Phong shading:

![Chapter 6 rendering test](output/ch6_test.png)

From Chapter 07 - World / Camera / Scenes:

![Chapter 7 rendering test](output/ch7_test.png)

From Chapter 08 - Shadows:

![Chapter 8 rendering test](output/ch8_test.png)

From Chapter 09 - Planes:

![Chapter 9 rendering test](output/ch9_test.png)

From Chapter 10 - Patterns:

![Chapter 10 rendering test](output/ch10_test.png)

From Chapter 11 - Reflections, Transparency & Refractions

![Chapter 11 reflections rendering test](output/ch11_reflection.png)

![Chapter 11 refraction rendering test](output/ch11_refraction.png)

![Chapter 11 rendering test](output/ch11_test.png)

From Chapter 12 - Cubes:

![Chapter 12 rendering test](output/ch12_test.png)