source: branches/VUT/v2.0/GtpVisibilityPreprocessor/src/Material.h @ 162

Revision 162, 464 bytes checked in by bittner, 19 years ago (diff)

functional raycasting version

Line 
1#ifndef __MATERIAL_H
2#define __MATERIAL_H
3
4
5
6class RgbColor
7{
8public:
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
24class Material
25{
26public:
27  RgbColor mDiffuseColor;
28  RgbColor mSpecularColor;
29  RgbColor mAmbientColor;
30 
31  Material()
32  {
33  }
34 
35  friend Material RandomMaterial();
36 
37};
38
39
40
41
42#endif
Note: See TracBrowser for help on using the repository browser.