bp74 / StageXL

A fast and universal 2D rendering engine for HTML5 and Dart.
http://www.stagexl.org
Other
880 stars 82 forks source link

Support `gl.blendEquation` #336

Closed maxme1 closed 3 years ago

maxme1 commented 3 years ago

First of all, I've been using stagexl for around a year and I think it's awesome!

It would be nice if stagexl supported gl.blendEquation, this could help achieve min or max blending. It seems that currently the blending mode is handled inside of RenderContextWebGL's activateBlendMode. I suppose BlendMode could be modified, so that if only src is provided blendEquation is used instead of blendFunc. Are there more functions that touch BlendMode?

maxme1 commented 3 years ago

Solved by #337