Skip to content

A simple yet powerful ray tracer written in C++ following the Ray Tracing in One Weekend guide. Supports spheres, reflections, refractions and depth of field

Notifications You must be signed in to change notification settings

aym-n/Raydiance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raydiance - A Simple Ray Tracer in C++

Raydiance is a ray tracer written in C++, built by following the Ray Tracing in One Weekend guide. It supports rendering spheres, reflections, refractions, depth of field, and multi-threaded rendering.

Example Renders

Generated images are stored in the images directory. Here are some sample outputs:


Gradient Background


Diffuse Sphere


Metal Sphere


Hollow Glass Sphere


Depth of Field


Final Render

Build Instructions

Prerequisites

Ensure you have CMake and a C++17 compiler installed.

Compilation & Execution

cmake -S . -B build
cmake --build build
build/Raydiance > images/15_FinalRender.ppm

About

A simple yet powerful ray tracer written in C++ following the Ray Tracing in One Weekend guide. Supports spheres, reflections, refractions and depth of field

Resources

Stars

Watchers

Forks