Add ambient property to Scene
This commit is contained in:
parent
e55828890b
commit
fcd2781cc7
2 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
Scene::Scene()
|
||||
: width(640), height(480),
|
||||
max_depth(5),
|
||||
ambient(NULL),
|
||||
nrays(0),
|
||||
pixels(NULL)
|
||||
{ }
|
||||
|
|
|
@ -50,6 +50,7 @@ private:
|
|||
int max_depth;
|
||||
|
||||
// Scene objects.
|
||||
AmbientLight *ambient;
|
||||
std::list<Shape *> shapes;
|
||||
std::list<PointLight *> lights;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue