[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Premultiplied alpha blending and issues with color accuracy
What do you mean with texture ping-pong? Is it creating extra textures to hold intermediate values?
On Fri, May 11, 2012 at 10:00 AM, Florian Bösch <email@example.com>
I've run into similar blending limitations when trying to implement brushes, but on desktop GL. The issue in a nutshell is that the GL blending equations do only implement a small subset of blending modes commonly used in drawing applications (you might get the simple alpha overlay right, but then there's modes like screen, burn, dodge, lighten, darken, grain merge, grain extract ect.) which you can't do with the blend equations.
I agree with Ben that you should do texture ping/pong so you can implement your own unrestricted blending equation.