T55456 EditMeshMode
[blender.git] / source / blender / draw / modes / shaders / edit_mesh_overlay_facefill_vert.glsl
index 3b9aa77306fd79750088af53546e9be960fb6f00..c9de6d29524335f270b2b63134621e8f3e83cb41 100644 (file)
@@ -5,25 +5,11 @@ in vec3 pos;
 in ivec4 data;
 
 flat out vec4 faceColor;
-flat out int faceActive;
 
-#define FACE_ACTIVE   (1 << 2)
 #define FACE_SELECTED (1 << 3)
 
 void main()
 {
        gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
-
-       if ((data.x & FACE_ACTIVE) != 0) {
-               faceColor = colorEditMeshActive;
-               faceActive = 1;
-       }
-       else if ((data.x & FACE_SELECTED) != 0) {
-               faceColor = colorFaceSelect;
-               faceActive = 0;
-       }
-       else {
-               faceColor = colorFace;
-               faceActive = 0;
-       }
+       faceColor = ((data.x & FACE_SELECTED) != 0)? colorFaceSelect: colorFace;
 }