Last active
August 29, 2015 14:03
-
-
Save erikccoder/b2cc02c0942dcbf18e5f to your computer and use it in GitHub Desktop.
OpenGL accumulate alpha drawing in FBO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| glEnable(GL_BLEND); | |
| //glBlendFuncSeparate(GL_ONE, GL_SRC_COLOR, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); | |
| glBlendFuncSeparate(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA,GL_ONE,GL_ONE_MINUS_SRC_ALPHA); | |
| //draw | |
| glDisable(GL_BLEND); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment