Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 532 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 532 Bytes

RayTracerFromScratch

This is an attempt to write a renderer using ray tracing from scratch using the logic described in the book Ray tracing in one weekend by Peter Shirley.

Usage

To compile, run

g++ cpu.cpp ray.cpp vec3.cpp -lpthread -o cpu 

To run the code,

./cpu > c1.ppm

Sample images

sample image1 sample image1