GPencil: Fix clamp alpha problems when using Regular blend
authorAntonioya <blendergit@gmail.com>
Wed, 12 Jun 2019 14:55:24 +0000 (16:55 +0200)
committerAntonioya <blendergit@gmail.com>
Wed, 12 Jun 2019 14:55:24 +0000 (16:55 +0200)
commitdb5c8c0393ba94f7ff523e1079ce4642fee661a8
tree6a5872c72a904bbc261a2d529c1b38e33a6c1c3b
parentda38558da2bc3e460edf9f72c5e16ebe29815515
GPencil: Fix clamp alpha problems when using Regular blend

The problem was the alpha was not premult and the opacity factor was applied two times.
source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl