- Joined
- Jul 31, 2017
- Messages
- 500
I'd like to have an additional blendmode. One with
instead of
The latter is used for Blendmode.Alpha, former is the typical blendfunc one uses when images aren't pre-multiplied (meaning colour channel values multiplied with alpha values when the image is loaded).
I'd like to introduce this into mojo2/graphics.cxs myself. But before I do, I wan't to make sure to use an adequate name for the newly introduced blendmode. Which one would you prefer?
Looking forward for your feedback ;-)
Code:
glBlendFunc GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA
Code:
glBlendFunc GL_ONE,GL_ONE_MINUS_SRC_ALPHA
The latter is used for Blendmode.Alpha, former is the typical blendfunc one uses when images aren't pre-multiplied (meaning colour channel values multiplied with alpha values when the image is loaded).
I'd like to introduce this into mojo2/graphics.cxs myself. But before I do, I wan't to make sure to use an adequate name for the newly introduced blendmode. Which one would you prefer?
- FullAlpha (because it's using the full "alpha" capability of glBlendFunc)
- Alpha2 (there's a Multiply2 already so maybe adding nondescript numbers is the way to go in Mojo2)
- DirectAlpha (because it's going to be used when the images aren't pre-multiplied but instead the blending is done directly upon drawing)
Looking forward for your feedback ;-)