diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-12-03 20:17:11 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-12-03 20:17:11 -0500 |
commit | 5614906ac4482734e6e670e3c7842f88b40bc417 (patch) | |
tree | 3f248664e25298db82b8cb67e568a4fda36f740c | |
parent | 3a5f0b977dd6ef7581b200515275cc67d8378138 (diff) |
render: blend: Fix additive blending mode.
* chickadee/render/blend.scm (apply-blend-mode): Use the correct
destination blending factor (one, not zero!) for additive blending.
-rw-r--r-- | chickadee/render/blend.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/render/blend.scm b/chickadee/render/blend.scm index 2e8ebb0..2452ef8 100644 --- a/chickadee/render/blend.scm +++ b/chickadee/render/blend.scm @@ -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) |