Is there GL.MAX?

Hi,

I am trying to use an alternative method for blending, because the traditional alpha blending GL.blendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA) produces artifacts when blending 2 images with transparent edges. I m trying to use GL.blendEquationSeparate(GL.FUNC_ADD, GL.MAX) but GL.MAX is nowhere to be found. It is not in the new lime GL class either…

Thanks.

You could use premultiplied alpha, this what is happening in OpenFL “next” to deal with blending

I’m not sure GL.MAX is part of the WebGL spec, which we use currently, but you could hard-code the constant or maybe we could find an elegant way to support WebGL “core” functions, but also (knowingly) allow people to go past the rails to use desktop or mobile specific methods