Fix #125346: wrong transparency for dashed node links

This changed accidentally in 3410d0bf3f.
This commit is contained in:
Jacques Lucke
2024-07-26 14:40:00 +02:00
parent 7346ef03f4
commit f600d5681b

View File

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