GP: Fix problem when alpha is too low

There are still some color when the alpha is set to 0
This commit is contained in:
Antonio Vazquez 2018-11-02 18:05:13 +01:00
parent 55a743fade
commit 74737091c0
Notes: blender-bot 2023-04-14 09:18:04 +02:00
Referenced by issue #57600, Creating a new scene doesn't use the default Colour Management settings
Referenced by issue #57601, Crashing after baking ( or clearing and baking ) simple smoke sim
2 changed files with 5 additions and 0 deletions

View File

@ -46,4 +46,6 @@ void main()
/* mult both alpha factor to use strength factor with color alpha limit */
fragColor.a = min(text_color.a * mColor.a, mColor.a);
}
if(fragColor.a < 0.0035)
discard;
}

View File

@ -43,4 +43,7 @@ void main()
/* mult both alpha factor to use strength factor with color alpha limit */
fragColor.a = min(text_color.a * tColor.a, tColor.a);
}
if(fragColor.a < 0.0035)
discard;
}