Fix #125346: wrong transparency for dashed node links
This changed accidentally in 3410d0bf3f.
This commit is contained in:
@@ -13,12 +13,6 @@ float get_line_alpha(float center, float relative_radius)
|
||||
|
||||
void main()
|
||||
{
|
||||
if (isMainLine == 0) {
|
||||
fragColor = finalColor;
|
||||
fragColor.a *= get_line_alpha(0.5, 0.5);
|
||||
return;
|
||||
}
|
||||
|
||||
float dash_frag_alpha = 1.0;
|
||||
if (dashFactor < 1.0) {
|
||||
float distance_along_line = lineLength * lineUV.x;
|
||||
@@ -39,6 +33,12 @@ void main()
|
||||
dash_frag_alpha = alpha;
|
||||
}
|
||||
|
||||
if (isMainLine == 0) {
|
||||
fragColor = finalColor;
|
||||
fragColor.a *= get_line_alpha(0.5, 0.5) * dash_frag_alpha;
|
||||
return;
|
||||
}
|
||||
|
||||
if (hasBackLink == 0) {
|
||||
fragColor = finalColor;
|
||||
fragColor.a *= get_line_alpha(0.5, 0.5) * dash_frag_alpha;
|
||||
|
||||
Reference in New Issue
Block a user