Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
20 lines
295 B
GLSL
20 lines
295 B
GLSL
|
|
flat in int vertFlag;
|
|
|
|
out vec4 FragColor;
|
|
|
|
void main()
|
|
{
|
|
/* TODO: vertex size */
|
|
|
|
if ((vertFlag & VERT_SELECTED) != 0) {
|
|
FragColor = colorVertexSelect;
|
|
}
|
|
else if ((vertFlag & VERT_ACTIVE) != 0) {
|
|
FragColor = colorEditMeshActive;
|
|
}
|
|
else {
|
|
FragColor = colorVertex;
|
|
}
|
|
}
|