667 {
668 bool foundActiveEffect = false;
669 int lowestKey = 1000000;
670 array<float> chosenArray;
671
673 {
676
677 for (int j = 0; j < colorizeValues.Count(); j++)
678 {
679 if (colorizeValues[j] != 0.0)
680 {
681 if (currentKey < lowestKey)
682 {
683 chosenArray = colorizeValues;
684 lowestKey = currentKey;
685 foundActiveEffect = true;
686 break;
687 }
688 }
689 }
690 }
691 if (foundActiveEffect)
692 {
693 float color[4];
694 color[0] = chosenArray[0];
695 color[1] = chosenArray[1];
696 color[2] = chosenArray[2];
697 color[3] = 0;
699 }
700 else
701 {
702
704 }
705 }
static Material m_MatColors
static void ResetColorize()
static ref map< int, ref array< float > > m_ColorizeEffects