6dcbc0974688767da33084859cf77bdb3859d2d6
[blender.git] / source / blender / draw / modes / shaders / edit_mesh_overlay_facedot_frag.glsl
1
2 flat in int isSelected;
3 #ifdef VERTEX_FACING
4 in float facing;
5 #endif
6
7 out vec4 FragColor;
8
9 void main()
10 {
11         if (isSelected != 0)
12                 FragColor = colorFaceDot;
13         else
14                 FragColor = colorWireEdit;
15
16 #ifdef VERTEX_FACING
17         FragColor.a *= 1.0 - abs(facing) * 0.4;
18 #endif
19 }