Screen blend mode for JOGL.

This commit is contained in:
Hannes Nevalainen 2014-07-01 19:22:13 +02:00
parent 9027b748eb
commit 09b4ef6d82

View File

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