From dd88363900aedbb05f2076f15d297ef79be4180f Mon Sep 17 00:00:00 2001 From: Hannes Nevalainen Date: Tue, 1 Jul 2014 19:23:28 +0200 Subject: [PATCH] Screen blend mode for andriod. --- .../java/com/jme3/renderer/android/OGLESShaderRenderer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java b/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java index d7a6eb017..d95644189 100644 --- a/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java +++ b/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java @@ -556,6 +556,9 @@ public class OGLESShaderRenderer implements Renderer { case ModulateX2: GLES20.glBlendFunc(GLES20.GL_DST_COLOR, GLES20.GL_SRC_COLOR); break; + case Screen: + GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_COLOR); + break; default: throw new UnsupportedOperationException("Unrecognized blend mode: " + state.getBlendMode());