equal
deleted
inserted
replaced
70 public: |
70 public: |
71 Vector3 pos; |
71 Vector3 pos; |
72 Colour colour; |
72 Colour colour; |
73 bool cast_shadows; |
73 bool cast_shadows; |
74 |
74 |
|
75 Light(): |
|
76 pos(Vector3(0,0,0)), colour(Colour(1,1,1)), cast_shadows(true) {}; |
75 Light(const Vector3 &position, const Colour &acolour): |
77 Light(const Vector3 &position, const Colour &acolour): |
76 pos(position), colour(acolour), cast_shadows(true) {}; |
78 pos(position), colour(acolour), cast_shadows(true) {}; |
77 void castShadows(bool cast) { cast_shadows = cast; }; |
79 void castShadows(bool cast) { cast_shadows = cast; }; |
78 }; |
80 }; |
79 |
81 |