render: blend: Fix additive blending mode.
authorDavid Thompson <dthompson2@worcester.edu>
Tue, 4 Dec 2018 01:17:11 +0000 (20:17 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Tue, 4 Dec 2018 01:17:11 +0000 (20:17 -0500)
* chickadee/render/blend.scm (apply-blend-mode): Use the correct
destination blending factor (one, not zero!) for additive blending.

chickadee/render/blend.scm

index 2e8ebb0..2452ef8 100644 (file)
@@ -44,7 +44,7 @@
           ('add
            (gl-blend-equation (blend-equation-mode-ext func-add-ext))
            (gl-blend-func (blending-factor-src one)
-                          (blending-factor-dest zero)))
+                          (blending-factor-dest one)))
           ('lighten
            (gl-blend-equation (blend-equation-mode-ext max-ext))
            (gl-blend-func (blending-factor-src one)