jloutfalla / rt

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

Home Page:https://raytracing.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://raytracing.github.io

License:GNU General Public License v3.0


Languages

Language:C 98.9%Language:Emacs Lisp 0.6%Language:Makefile 0.5%