DRW: match edge opacity to 2.82

Edges were hard to see in some cases in edit-mesh vertex/face modes.

Since 804e90b42d alpha is handled differently,
update edge alpha to visually match 2.82.
This commit is contained in:
Campbell Barton 2020-03-30 09:59:31 +11:00
parent a103d09df4
commit 6c48a36962
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ vec4 EDIT_MESH_edge_color_inner(int edge_flag)
color = ((edge_flag & EDGE_SELECTED) != 0) ? color_select : color;
color = ((edge_flag & EDGE_ACTIVE) != 0) ? colorEditMeshActive : color;
color.a = (selectEdges || (edge_flag & (EDGE_SELECTED | EDGE_ACTIVE)) != 0) ? 1.0 : 0.4;
color.a = (selectEdges || (edge_flag & (EDGE_SELECTED | EDGE_ACTIVE)) != 0) ? 1.0 : 0.7;
return color;
}
@ -32,7 +32,7 @@ vec4 EDIT_MESH_edge_vertex_color(int vertex_flag)
bool edge_selected = (vertex_flag & (VERT_ACTIVE | VERT_SELECTED)) != 0;
color = (edge_selected) ? color_select : color;
color.a = (selectEdges || edge_selected) ? 1.0 : 0.4;
color.a = (selectEdges || edge_selected) ? 1.0 : 0.7;
return color;
}