If I have a Renderbuffer that uses a color format without alpha, for example GL_RG8
, how can I tell the alpha blender to use the green channel for alpha? This can be done in textures using a swizzle mask, but as renderbuffers don't support those, what can I do?
My current blendFunc is GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA
.