I have a problem with blending semitransparent textures while drawing them in fbo. I need to draw such scene: some image in background blended with transparent fbo. Fbo consists of transparent brush textures. I need to get image where brush overlay background image. What type of blending should I use?
Add screenshots: first is what I want to get, second is what I get.
To get the result in the first image you just need normal alpha blending; in the second image it looks that the color of your brush strokes have an alpha value <255 (or 1.0 depending on how you describe your colors )
It looks that your brush strokes are done drawing multiple circles, so here’s an example that draws a simple white dot:
the problem was i should make separate blending inside fbo like this: