Simple Ray Tracer with Depth of Field effect Files included -
- camera_setup.hpp
- color.hpp
- framebuffer.hpp
- objects.hpp
- vector.hpp
- scene.cpp (main source file)
- Makefile (use this for compiling and generating executable)
- my_scene.scene (scene configuration file)
Instructions (For the ray tracer portion): Use the makefile to compile the code and create the executable. The default name is my_raytracer. When running the executable my_raytracer, also give the .scene file as an input argument. If you do not give the .scene parameter the code will just prompt to give input argument next time you run and will exit the current run. So please run the following commands -
- make -f Makefile
- ./my_raytracer my_scene.scene