Revision 2954,
600 bytes
checked in by mattausch, 16 years ago
(diff) |
implemented sun color
|
Line | |
---|
1 | #ifndef __LIGHT_H
|
---|
2 | #define __LIGHT_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include "Vector3.h"
|
---|
6 | #include "Material.h"
|
---|
7 |
|
---|
8 |
|
---|
9 | namespace CHCDemoEngine
|
---|
10 | {
|
---|
11 |
|
---|
12 | /** Class representing a directional light source
|
---|
13 | */
|
---|
14 | class DirectionalLight
|
---|
15 | {
|
---|
16 | public:
|
---|
17 |
|
---|
18 | DirectionalLight(const Vector3 &dir, const RgbaColor &col): mColor(col) { mDirection = Normalize(dir); }
|
---|
19 |
|
---|
20 | Vector3 GetDirection() const { return mDirection; }
|
---|
21 | void SetDirection(const Vector3 &dir) { mDirection = dir; }
|
---|
22 |
|
---|
23 | RgbaColor GetColor() const { return mColor; }
|
---|
24 |
|
---|
25 |
|
---|
26 | protected:
|
---|
27 |
|
---|
28 | Vector3 mDirection;
|
---|
29 | RgbaColor mColor;
|
---|
30 | };
|
---|
31 |
|
---|
32 | }
|
---|
33 |
|
---|
34 | #endif // __LIGHT_H |
---|
Note: See
TracBrowser
for help on using the repository browser.