Differential D16819 Diff 58769 source/blender/draw/engines/overlay/shaders/overlay_edit_uv_faces_vert.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/overlay_edit_uv_faces_vert.glsl
| #pragma BLENDER_REQUIRE(common_view_lib.glsl) | #pragma BLENDER_REQUIRE(common_view_lib.glsl) | ||||
| void main() | void main() | ||||
| { | { | ||||
| vec3 world_pos = point_object_to_world(vec3(au, 0.0)); | vec3 world_pos = point_object_to_world(vec3(au, 0.0)); | ||||
| gl_Position = point_world_to_ndc(world_pos); | gl_Position = point_world_to_ndc(world_pos); | ||||
| bool is_selected = (flag & FACE_UV_SELECT) != 0; | bool is_selected = (flag & FACE_UV_SELECT) != 0u; | ||||
| bool is_active = (flag & FACE_UV_ACTIVE) != 0; | bool is_active = (flag & FACE_UV_ACTIVE) != 0u; | ||||
| finalColor = (is_selected) ? colorFaceSelect : colorFace; | finalColor = (is_selected) ? colorFaceSelect : colorFace; | ||||
| finalColor = (is_active) ? colorEditMeshActive : finalColor; | finalColor = (is_active) ? colorEditMeshActive : finalColor; | ||||
| finalColor.a *= uvOpacity; | finalColor.a *= uvOpacity; | ||||
| } | } | ||||