Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-05-30 13:05:25 +0300
committerAntonioya <blendergit@gmail.com>2019-05-30 14:23:26 +0300
commit1cb74768c12b0cd668f88af4ad8fe1598a5d44e9 (patch)
treeaf7d36d5c5488c5758ddf627e595381e89ccf323
parent9c00429ee77e1d390dc6736bdc675aa38a468c43 (diff)
GPencil: Remove wrong premult in Blend shader
The process was doing two times the same and the alpha was totally wrong. Related to T65279
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl
index d415ce53137..73aed062cf1 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl
@@ -111,14 +111,6 @@ void main()
vec4 mix_color = texelFetch(blendColor, uv, 0).rgba;
float mix_depth = texelFetch(blendDepth, uv, 0).r;
- /* premult alpha factor to remove double blend effects */
- if (stroke_color.a > 0) {
- stroke_color = vec4(vec3(stroke_color.rgb / stroke_color.a), stroke_color.a);
- }
- if (mix_color.a > 0) {
- mix_color = vec4(vec3(mix_color.rgb / mix_color.a), mix_color.a);
- }
-
/* Normal mode */
if (mode == MODE_NORMAL) {
if (stroke_color.a > 0) {