Welcome to mirror list, hosted at ThFree Co, Russian Federation.

overlay_edit_uv_faces_vert.glsl « shaders « overlay « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 80ea62286750078b0c173e7659d0751303f227db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma BLENDER_REQUIRE(common_view_lib.glsl)

void main()
{
  vec3 world_pos = point_object_to_world(vec3(au, 0.0));
  gl_Position = point_world_to_ndc(world_pos);

  bool is_selected = (flag & FACE_UV_SELECT) != 0;
  bool is_active = (flag & FACE_UV_ACTIVE) != 0;

  finalColor = (is_selected) ? colorFaceSelect : colorFace;
  finalColor = (is_active) ? colorEditMeshActive : finalColor;
  finalColor.a *= uvOpacity;
}