/rt

Simple implementation in C of the ray tracer from Peter Shirley's books.

Primary LanguageCGNU General Public License v3.0GPL-3.0

rt - Simple ray tracer in C

This is a simple implementation in C of the ray tracer presented in Peter Shirley’s books with some enhancements like multi-threaded rendering.

Build

First of all, you will need make and the pthread library to build rt. If you don’t have it or you don’t want multi-threaded rendering, you can go comment everything related to this in rt.c and change the run rule in the Makefile to use the commented command instead.

make # Just to create rt executable
make run # Create rt executable and run it

Results

./out.png