GUI page switching and alpha blending
I've been working on some GUI issues and ran into an elementary problem with gui page fade in/out.
The fading is imlemented by reducing the opacity of the old page while increasing the opacity of the new one. The problem is that alpha blending the pages on top of each other with the background is not equivalent to fading from one page to another (the math is different).
The result can be observed in current master, since I've fixed an opacity related issue with a texture used by the gui, a slight flickering of the lower gui area can be seen (it is less noticeable in darker areas).
Not sure if this is fixable, might be worked around by reducing opacity, or maybe going fully opaque, increasing fading time, or disabling fading completely, adjusting gui colors to make it less visible...
|