[Bf-blender-cvs] [2ca48b96789] master: Fix T86370: Select color for glow is inverted
Falk David
noreply at git.blender.org
Mon Mar 15 09:52:06 CET 2021
Commit: 2ca48b967894dc2be786e0db1b0ed1fa6abd5383
Author: Falk David
Date: Mon Mar 15 09:50:40 2021 +0100
Branches: master
https://developer.blender.org/rB2ca48b967894dc2be786e0db1b0ed1fa6abd5383
Fix T86370: Select color for glow is inverted
The shader was filtering everything but the selected color.
The fix inverts the check to make sure that color is selected.
Reviewed By: fclem
Maniphest Tasks: T86370
Differential Revision: https://developer.blender.org/D10670
===================================================================
M source/blender/draw/engines/gpencil/shaders/gpencil_vfx_frag.glsl
===================================================================
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_vfx_frag.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_vfx_frag.glsl
index aedc8668387..bb905f8694b 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_vfx_frag.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_vfx_frag.glsl
@@ -168,7 +168,7 @@ void main()
vec3 rev = texture(revealBuf, uv).rgb;
if (threshold.x > -1.0) {
if (threshold.y > -1.0) {
- if (all(lessThan(abs(col - threshold), vec3(0.05)))) {
+ if (any(greaterThan(abs(col - threshold), vec3(0.05)))) {
weight = 0.0;
}
}
More information about the Bf-blender-cvs
mailing list