I have an FBO that has an image drawn to it, then when a new image is selected to be drawn to it, it is drawn semi-transparently so that it has the effect of “fading in” on top of the other image. This is meant to have the effect of transitioning between the images. The problem is that you end up with little ghost traces of the old image that is not entirely erased. What are some approaches to this problem you have used in the past?
This isn’t a great example, but you can see in the upper middle section a bit of “left over” image.
I can think of some more complicated approaches to this, like copy the FBO to a new FBO object when a new image is loaded, and then draw that FBO on top of the other and fade it out over time. Or, break open the FBO pixels and do some direct manipulation, lerping the values, but this sounds expensive.