Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.03 KB

File metadata and controls

28 lines (20 loc) · 1.03 KB

Raytracer

fun with colors image

An interesting thing you might note is the glass balls don’t really have shadows which makes them look like they are floating. This is not a bug — you don’t see glass balls much in real life, where they also look a bit strange, and indeed seem to float on cloudy days. A point on the big sphere under a glass ball still has lots of light hitting it because the sky is re-ordered rather than blocked. image

A C++ raytracing implementation based on Ray Tracing in One Weekend.

Build

cmake -B build
cmake --build build

Run

build\Debug\raytracer.exe > image.ppm

Features

  • Spheres with materials (lambertian, metal, dielectric)
  • Camera with adjustable field of view and depth of field
  • Anti-aliasing
  • Random scene generation