35 effectColorMul.getRed() * effectState->colorMul.getRed(),
36 effectColorMul.getGreen() * effectState->colorMul.getGreen(),
37 effectColorMul.getBlue() * effectState->colorMul.getBlue(),
38 effectColorMul.getAlpha() * effectState->colorMul.getAlpha()
41 effectState->colorAdd.set(
49 effectColorAdd.getRed() + effectState->colorAdd.getRed(),
50 effectColorAdd.getGreen() + effectState->colorAdd.getGreen(),
51 effectColorAdd.getBlue() + effectState->colorAdd.getBlue(),
52 effectColorAdd.getAlpha() + effectState->colorAdd.getAlpha()
void set(const array< float, 4 > &color)
Set up color.
void apply(GUIRenderer *guiRenderer) override
Apply effect.
GUIEffectState startState
GUIEffectState * getEffectState()
const GUIColor & getGUIEffectColorAdd()
const GUIColor & getGUIEffectColorMul()
void setGUIEffectColorMul(const GUIColor &color)
Set GUI effect color mul.
void setGUIEffectColorAdd(const GUIColor &color)
Set GUI effect color add.