# Raytracer

This is me learning how graphics works. Yay, learning!

It can only make balls right now, so here are some balls for you to look at:

<img src="https://github.com/davepagurek/raytracer/blob/master/samples/lights_on_plane.png?raw=true" />

<img src="https://github.com/davepagurek/raytracer/blob/master/samples/motionblur.png?raw=true" />

<img src="https://github.com/davepagurek/raytracer/blob/master/samples/prisms.png?raw=true" />

## Features
- Shapes
  - Sphere
  - Plane
  - Triangle
    - Rectangle
    - Rectangular prism
- Materials
  - Diffuse
  - Reflective
  - Refractive
  - Light emitter
- Lens blur
- Motion blur

# Raytracer

This is a Monte Carlo style 3d renderer (so the more samples you use, the closer to a perfect render it gets.) Here are some images I've rendered with it so far:

<img src="https://github.com/davepagurek/raytracer/blob/master/samples/lights_on_plane.png?raw=true" />

<img src="https://github.com/davepagurek/raytracer/blob/master/samples/motionblur.png?raw=true" />

<img src="https://github.com/davepagurek/raytracer/blob/master/samples/prisms.png?raw=true" />

## Features
- Shapes
  - Sphere
  - Plane
  - Triangle
    - Rectangle
    - Rectangular prism
- Materials
  - Diffuse
  - Reflective
  - Refractive
  - Light emitter
- Lens blur
- Motion blur

Update readme since it can do more than balls now
Update readme since it can do more than balls now