             );
             float d = min(-d_radii_a, d_radii_b);
             float alpha = distance_aa(aa_range, d);
-            return alpha * color[0];
+            return alpha * color0;
         }
         case BORDER_STYLE_GROOVE:
         case BORDER_STYLE_RIDGE: {

                case SEGMENT_BOTTOM_LEFT: swizzled_factor = 1.0 - mix_factor; break;
                default: swizzled_factor = 0.0; break;
            };
            vec4 c0 = mix(color[1], color[0], swizzled_factor);
            vec4 c1 = mix(color[0], color[1], swizzled_factor);
            return mix(c0, c1, alpha);
        }
        default:
            break;
    }

    return color[0];
}

vec4 evaluate_color_for_style_in_edge(
    vec2 pos,
    int style,
    vec4 color[2],
    float aa_range,
    int edge_axis
) {

            }
            float d = min(d0, d1);
            float alpha = distance_aa(aa_range, d);
            return alpha * color0;
        }
        case BORDER_STYLE_GROOVE:
        case BORDER_STYLE_RIDGE: {
            float ref = vEdgeReference[edge_axis] + vPartialWidths[edge_axis+2];
            float d = pos[edge_axis] - ref;
            float alpha = distance_aa(aa_range, d);
            return mix(color0, color1, alpha);
        }
        default:
            break;
    }

    return color0;
}

void main(void) {
