New lighting object tree: AmbientLight -> PointLight

This commit is contained in:
Eryn Wells 2013-09-13 14:12:55 -07:00
parent 9fef3c33d2
commit 55ef253c10
5 changed files with 99 additions and 32 deletions

View file

@ -41,8 +41,10 @@ main(int argc,
scene.add_shape(s2);
scene.add_shape(s3);
Light *l1 = new Light(Vector3(500.0, 100.0, 600.0), 1.0);
PointLight *l1 = new PointLight(Vector3(0.0, 240.0, 100.0), Color(1.0, 1.0, 1.0), 1.0);
//Light *l2 = new Light(Vector3(640.0, 240.0, 10000.0), 0.2);
scene.add_light(l1);
//scene.add_light(l2);
// Render.
scene.render();