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:
authorFalk David <falkdavid@gmx.de>2021-03-15 11:50:40 +0300
committerFalk David <falkdavid@gmx.de>2021-03-15 11:51:52 +0300
commit2ca48b967894dc2be786e0db1b0ed1fa6abd5383 (patch)
tree96367beeb6add1f154d98703d5ce04ec0c3b3c94 /source/blender/draw
parent4ecd47de6b0d489be3c6cf183c3a0173a9495031 (diff)
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
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_vfx_frag.glsl2
1 files changed, 1 insertions, 1 deletions
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;
}
}