I followed the Ray Tracing in One Week book series to create this small ray-tracing engine. The engine can display spheres or meshes with triangles and light of different colors.
I used the easyppm library to creates the output images.
$ g++ main.cpp -O4 -fopenmp -lpthread -o main -Wall -Wconversion -Wextra -Wshadow
$ ./main