Differential D4921 Diff 15532 source/blender/draw/modes/shaders/edit_curve_overlay_loosevert_vert.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/shaders/edit_curve_overlay_loosevert_vert.glsl
| /* Draw Curve Vertices */ | /* Draw Curve Vertices */ | ||||
| uniform vec2 viewportSize; | uniform vec2 viewportSize; | ||||
| in vec3 pos; | in vec3 pos; | ||||
| in int data; | in int data; | ||||
| out vec4 finalColor; | out vec4 finalColor; | ||||
| void main() | void main() | ||||
| { | { | ||||
| GPU_INTEL_VERTEX_SHADER_WORKAROUND | |||||
| if ((data & VERT_SELECTED) != 0) { | if ((data & VERT_SELECTED) != 0) { | ||||
| if ((data & VERT_ACTIVE) != 0) { | if ((data & VERT_ACTIVE) != 0) { | ||||
| finalColor = colorEditMeshActive; | finalColor = colorEditMeshActive; | ||||
| } | } | ||||
| else { | else { | ||||
| finalColor = colorVertexSelect; | finalColor = colorVertexSelect; | ||||
| } | } | ||||
| } | } | ||||
| Show All 11 Lines | |||||