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:
Falk David
2021-03-15 09:50:40 +01:00
parent 4ecd47de6b
commit 2ca48b9678

View File

@@ -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;
}
}