Open Istrebitel opened 7 years ago
So you want something that does:
if (not transparent) pixel_colour = VALUE;
or
if (not transparent) pixel_colour += VALUE; ?
So you want something that does:
if (not transparent) pixel_colour = VALUE;
or
if (not transparent) pixel_colour += VALUE; ?
Well, do you remember what vanilla did? When hit with stun, ship became kinda white-y. We need that.
In terms of color I think that is a blend, meaning you take the original color, white color, sum them and divide by 2 (or sum them, multiplied by 1-alpha and alpha respectively of the provided color, which controls how much of it is applied)
For personal testing if you want to use "Lunapic" on a screenshot, you could use gamma alterations to the graphics.
it seems to be the same function as the "day night" colouring in cache.
Lunapic: Adjust, Adjust light levels.
For stunned vehicles we must color vehicle white, meaning tinting isn't going to help as that can only subtract color, not add it.