Revision 386,
608 bytes
checked in by bittner, 19 years ago
(diff) |
VssPreprocessor? updates - directional rays, x3dexporter updates - removed duplicated code for ray exports
|
Line | |
---|
1 | #ifndef __MATERIAL_H
|
---|
2 | #define __MATERIAL_H
|
---|
3 |
|
---|
4 |
|
---|
5 |
|
---|
6 | class RgbColor
|
---|
7 | {
|
---|
8 | public:
|
---|
9 | float r, g, b;
|
---|
10 |
|
---|
11 | RgbColor():r(0.5f),g(0.5f),b(0.5f)
|
---|
12 | {
|
---|
13 | }
|
---|
14 |
|
---|
15 | RgbColor(const float _r,
|
---|
16 | const float _g,
|
---|
17 | const float _b):r(_r),g(_g),b(_b)
|
---|
18 | {
|
---|
19 | }
|
---|
20 |
|
---|
21 | };
|
---|
22 |
|
---|
23 |
|
---|
24 | class Material
|
---|
25 | {
|
---|
26 | public:
|
---|
27 | RgbColor mDiffuseColor;
|
---|
28 | RgbColor mSpecularColor;
|
---|
29 | RgbColor mAmbientColor;
|
---|
30 |
|
---|
31 | Material()
|
---|
32 | {
|
---|
33 | }
|
---|
34 |
|
---|
35 | Material(const RgbColor &color):mDiffuseColor(color),
|
---|
36 | mAmbientColor(color),
|
---|
37 | mSpecularColor(0,0,0)
|
---|
38 | {
|
---|
39 | }
|
---|
40 |
|
---|
41 | friend Material RandomMaterial();
|
---|
42 |
|
---|
43 | };
|
---|
44 |
|
---|
45 |
|
---|
46 |
|
---|
47 |
|
---|
48 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.