/RT-in-weeks

光线追踪C++代码实践(RT in a Weekend合集)

Primary LanguageC++GNU General Public License v3.0GPL-3.0

RT in weeks

Just simply use whatever buildtool you have(it's Cmake to me) to build and run.

under project folder:

cmake . -Bbuild
cmake --build build

and you should find the executable in ./build.

to run the code directly:

RayTracing.exe

or with custom samplers amount (taking 512 for an example)

RayTracing.exe 512

BE AWARE!! Due to my poor coding technics, your PC is much likely to be FROZEN during the run. Sorry about that :(

Here comes some images rendered from the little Ray Tracer :)

Many Spheres

Noise Sphere with Lighting

Image with all Features

Cornel Box Modified