Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 696 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 696 Bytes

Raytracer

A textbook C++ Raytracer code. This is for learning purposes only.

How to use:

set parameters: samples per pixel, image width, bounce limit.
create world: add objects, materials. (some are there already)
set up camera: position, look at, up vector, FOV, aspect ratio.
build: main.cpp
run: cmake-build/raytracer.exe >image.ppm
open: image.ppm for final render.

This repo is based off of Peter Shirley's amazing book (RT in one Weekend).

latest render:

drawing

Next milestones:

  • Adding lights, triangles, etc.
  • Add multi-threading or use DirectX/CUDA
  • Add GUI