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:
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
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue