diff --git a/src/scene.cc b/src/scene.cc index d3d26d3..99f615a 100644 --- a/src/scene.cc +++ b/src/scene.cc @@ -16,6 +16,7 @@ Scene::Scene() : width(640), height(480), + max_depth(5), pixels(NULL) { } diff --git a/src/scene.h b/src/scene.h index c38ff5e..bbe991d 100644 --- a/src/scene.h +++ b/src/scene.h @@ -42,10 +42,17 @@ public: private: Color trace_ray(const Ray &ray, const int depth); + // Pixel dimensions of the image. int width, height; + + // Ray tracing parameters. + int max_depth; + + // Scene objects. std::list shapes; std::list lights; + // Rendering output. bool _is_rendered; Color *pixels; };