source: GTP/trunk/Lib/Vis/Preprocessing/src/Material.cpp @ 863

Revision 863, 378 bytes checked in by mattausch, 19 years ago (diff)

working on preprocessor integration
added iv stuff

Line 
1#include "common.h"
2#include "Material.h"
3
4namespace GtpVisibilityPreprocessor {
5
6
7Material
8RandomMaterial()
9{
10  float a = 0.1f;
11  float b = 0.9f;
12
13  Material m;
14  m.mDiffuseColor = RandomColor(a, b);
15
16  return m;
17}
18
19
20RgbColor
21RandomColor(const float a, const float b)
22{
23  return RgbColor(a + Random(b),
24                                  a + Random(b),
25                                  a + Random(b));
26}
27
28}
Note: See TracBrowser for help on using the repository browser.