Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/edit_gpencil_vert.glsl
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | if (doWeightColor) { | ||||
| finalColor.a = gpEditOpacity; | finalColor.a = gpEditOpacity; | ||||
| } | } | ||||
| else { | else { | ||||
| finalColor = (is_point_sel) ? colorSelect : colorUnselect; | finalColor = (is_point_sel) ? colorSelect : colorUnselect; | ||||
| finalColor.a *= gpEditOpacity; | finalColor.a *= gpEditOpacity; | ||||
| } | } | ||||
| #ifdef USE_POINTS | #ifdef USE_POINTS | ||||
| gl_PointSize = sizeVertex * 2.0; | gl_PointSize = sizeVertexGpencil * 2.0; | ||||
| if (is_point_dimmed) { | if (is_point_dimmed) { | ||||
| finalColor.rgb = clamp(colorUnselect.rgb + vec3(0.3), 0.0, 1.0); | finalColor.rgb = clamp(colorUnselect.rgb + vec3(0.3), 0.0, 1.0); | ||||
| } | } | ||||
| if (doStrokeEndpoints && !doWeightColor) { | if (doStrokeEndpoints && !doWeightColor) { | ||||
| bool is_stroke_start = (vflag & GP_EDIT_STROKE_START) != 0u; | bool is_stroke_start = (vflag & GP_EDIT_STROKE_START) != 0u; | ||||
| bool is_stroke_end = (vflag & GP_EDIT_STROKE_END) != 0u; | bool is_stroke_end = (vflag & GP_EDIT_STROKE_END) != 0u; | ||||
| Show All 25 Lines | |||||