summaryrefslogtreecommitdiff
path: root/src/opengl/util/composition_mode_screen.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/util/composition_mode_screen.glsl')
-rw-r--r--src/opengl/util/composition_mode_screen.glsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/opengl/util/composition_mode_screen.glsl b/src/opengl/util/composition_mode_screen.glsl
new file mode 100644
index 0000000000..8f4f010032
--- /dev/null
+++ b/src/opengl/util/composition_mode_screen.glsl
@@ -0,0 +1,6 @@
+// Dca' = Sca + Dca - Sca.Dca
+// Da' = Sa + Da - Sa.Da
+vec4 composite(vec4 src, vec4 dst)
+{
+ return src + dst - src * dst;
+}