Differential D16819 Diff 58769 source/blender/draw/engines/overlay/shaders/overlay_edit_mesh_vert.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/overlay_edit_mesh_vert.glsl
| Show All 32 Lines | void main() | ||||
| uvec4 m_data = data & uvec4(dataMask); | uvec4 m_data = data & uvec4(dataMask); | ||||
| #if defined(VERT) | #if defined(VERT) | ||||
| vertexCrease = float(m_data.z >> 4) / 15.0; | vertexCrease = float(m_data.z >> 4) / 15.0; | ||||
| finalColor = EDIT_MESH_vertex_color(m_data.y, vertexCrease); | finalColor = EDIT_MESH_vertex_color(m_data.y, vertexCrease); | ||||
| gl_PointSize = sizeVertex * ((vertexCrease > 0.0) ? 3.0 : 2.0); | gl_PointSize = sizeVertex * ((vertexCrease > 0.0) ? 3.0 : 2.0); | ||||
| /* Make selected and active vertex always on top. */ | /* Make selected and active vertex always on top. */ | ||||
| if ((data.x & VERT_SELECTED) != 0) { | if ((data.x & VERT_SELECTED) != 0u) { | ||||
| gl_Position.z -= 5e-7 * abs(gl_Position.w); | gl_Position.z -= 5e-7 * abs(gl_Position.w); | ||||
| } | } | ||||
| if ((data.x & VERT_ACTIVE) != 0) { | if ((data.x & VERT_ACTIVE) != 0u) { | ||||
| gl_Position.z -= 5e-7 * abs(gl_Position.w); | gl_Position.z -= 5e-7 * abs(gl_Position.w); | ||||
| } | } | ||||
| bool occluded = test_occlusion(); | bool occluded = test_occlusion(); | ||||
| #elif defined(EDGE) | #elif defined(EDGE) | ||||
| # ifdef FLAT | # ifdef FLAT | ||||
| finalColor = EDIT_MESH_edge_color_inner(m_data.y); | finalColor = EDIT_MESH_edge_color_inner(m_data.y); | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||