- trigger_red = (color.red == 1.0f ? MIN_INTENSITY : 0);
- trigger_green = (color.green == 1.0f ? MIN_INTENSITY : 0);
- trigger_blue = (color.blue == 1.0f ? MIN_INTENSITY : 0);
+ if(color.red == 0 && color.green == 0 && color.blue == 0) { //is it black?
+ black = true;
+ trigger_red = MIN_INTENSITY;
+ trigger_green = MIN_INTENSITY;
+ trigger_blue = MIN_INTENSITY;
+ } else {
+ black = false;
+ trigger_red = (color.red == 1.0f ? MIN_INTENSITY : 0);
+ trigger_green = (color.green == 1.0f ? MIN_INTENSITY : 0);
+ trigger_blue = (color.blue == 1.0f ? MIN_INTENSITY : 0);
+ }