ray tracer in c
- spheres, planes, triangles
- emissive, diffuse, metal, dielectric materials
- multi-sampling (naive sampling tbh)
- png output
- command line config (set width, height, samples, depth, world file)
- loads world info from file (see example/test.world)
- make a build directory
cd
into build directory- compile
../build.c
- now you can run the build executable
- pass
-r
for release build - pass
-e
to run app after build - pass
-mold
to use the mold linker - pass
-[ clang (default) | gcc | msvc | mingw ]
to build using specific toolchain
- pass
- a basic
CMakeLists.txt
file is provided