Add ambient property to Scene

This commit is contained in:
Eryn Wells 2013-09-13 14:15:34 -07:00
parent e55828890b
commit fcd2781cc7
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@
Scene::Scene()
: width(640), height(480),
max_depth(5),
ambient(NULL),
nrays(0),
pixels(NULL)
{ }

View file

@ -50,6 +50,7 @@ private:
int max_depth;
// Scene objects.
AmbientLight *ambient;
std::list<Shape *> shapes;
std::list<PointLight *> lights;