source:
trunk/VUT/GtpVisibilityPreprocessor/src/Material.cpp
@
608
Revision 608, 334 bytes checked in by bittner, 19 years ago (diff) |
---|
Line | |
---|---|
1 | #include "common.h" |
2 | #include "Material.h" |
3 | |
4 | |
5 | Material |
6 | RandomMaterial() |
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 | |
18 | RgbColor |
19 | RandomColor(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.