Screen blend mode for JOGL.
This commit is contained in:
parent
9027b748eb
commit
09b4ef6d82
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user