source: trunk/VUT/GtpVisibilityPreprocessor/src/Material.cpp @ 608

Revision 608, 334 bytes checked in by bittner, 19 years ago (diff)

slider support for viewcells

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