Screen blend mode for andriod.

This commit is contained in:
Hannes Nevalainen 2014-07-01 19:23:28 +02:00
parent 09b4ef6d82
commit dd88363900

View File

@ -556,6 +556,9 @@ public class OGLESShaderRenderer implements Renderer {
case ModulateX2: case ModulateX2:
GLES20.glBlendFunc(GLES20.GL_DST_COLOR, GLES20.GL_SRC_COLOR); GLES20.glBlendFunc(GLES20.GL_DST_COLOR, GLES20.GL_SRC_COLOR);
break; break;
case Screen:
GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_COLOR);
break;
default: default:
throw new UnsupportedOperationException("Unrecognized blend mode: " throw new UnsupportedOperationException("Unrecognized blend mode: "
+ state.getBlendMode()); + state.getBlendMode());