GRAPHICS: Add support for pixels with masks and inverted pixels
This commit is contained in:
parent
8adcc29df9
commit
3db67a33ac
36 changed files with 449 additions and 91 deletions
|
@ -119,6 +119,14 @@ void Framebuffer::applyBlendState() {
|
|||
GL_CALL(glEnable(GL_BLEND));
|
||||
GL_CALL(glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
|
||||
break;
|
||||
case kBlendModeAdditive:
|
||||
GL_CALL(glEnable(GL_BLEND));
|
||||
GL_CALL(glBlendFunc(GL_ONE, GL_ONE));
|
||||
break;
|
||||
case kBlendModeMaskAlphaAndInvertByColor:
|
||||
GL_CALL(glEnable(GL_BLEND));
|
||||
GL_CALL(glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue