summaryrefslogtreecommitdiffstats
path: root/src/opengl/util/composition_mode_difference.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/util/composition_mode_difference.glsl')
-rw-r--r--src/opengl/util/composition_mode_difference.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/util/composition_mode_difference.glsl b/src/opengl/util/composition_mode_difference.glsl
index ca13ce7..3c46ec7 100644
--- a/src/opengl/util/composition_mode_difference.glsl
+++ b/src/opengl/util/composition_mode_difference.glsl
@@ -3,7 +3,7 @@
vec4 composite(vec4 src, vec4 dst)
{
vec4 result;
- result.rgb = src.rgb + dst.rgb - 2 * min(src.rgb * dst.a, dst.rgb * src.a);
+ result.rgb = src.rgb + dst.rgb - 2.0 * min(src.rgb * dst.a, dst.rgb * src.a);
result.a = src.a + dst.a - src.a * dst.a;
return result;
}