branch | pyrit |
changeset 40 | 929aad02c5f2 |
parent 38 | 5d043eeb09d9 |
child 42 | fbdeb3e04543 |
--- a/include/scene.h Fri Dec 14 16:51:22 2007 +0100 +++ b/include/scene.h Mon Dec 17 22:03:50 2007 +0100 @@ -72,6 +72,8 @@ Colour colour; bool cast_shadows; + Light(): + pos(Vector3(0,0,0)), colour(Colour(1,1,1)), cast_shadows(true) {}; Light(const Vector3 &position, const Colour &acolour): pos(position), colour(acolour), cast_shadows(true) {}; void castShadows(bool cast) { cast_shadows = cast; };