Changeset 2515 for GTP/trunk/Lib/Vis/Preprocessing/src/Material.cpp
- Timestamp:
- 07/03/07 17:10:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Material.cpp
r2173 r2515 33 33 RgbColor color; 34 34 35 float value = 1.0f - _value; 35 36 float value = 4.0f*(1.0f - _value); 37 38 if (value < 0.0f) 39 value = 0.0f; 40 else 41 if (value > 4.0f) 42 value = 4.0f; 36 43 37 44 #define MAX_COLOR_VALUE 1.0f 38 int band = (int)(value*4.0f); 39 value = value - band; 45 46 int band = (int)(value); 47 48 value -= band; 40 49 41 50 switch (band) {
Note: See TracChangeset
for help on using the changeset viewer.