Ignore:
Timestamp:
07/03/07 17:10:12 (17 years ago)
Author:
bittner
Message:

update after long time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Material.cpp

    r2173 r2515  
    3333  RgbColor color; 
    3434 
    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; 
    3643 
    3744#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; 
    4049   
    4150  switch (band) { 
Note: See TracChangeset for help on using the changeset viewer.