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
This commit is contained in:
parent
4ecd47de6b
commit
2ca48b9678
Notes:
blender-bot
2023-02-14 07:47:59 +01:00
Referenced by issue #86370, Grease Pencil, effect, glow color select is inversed Referenced by issue #85958, Potential candidates for corrective releases
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue