diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/edit_curve_handle_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/edit_curve_handle_vert.glsl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/edit_curve_handle_vert.glsl b/source/blender/draw/engines/overlay/shaders/edit_curve_handle_vert.glsl index a2b0d072719..186cc010f45 100644 --- a/source/blender/draw/engines/overlay/shaders/edit_curve_handle_vert.glsl +++ b/source/blender/draw/engines/overlay/shaders/edit_curve_handle_vert.glsl @@ -1,8 +1,6 @@ -in vec3 pos; -in int data; - -flat out int vertFlag; +#pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl) +#pragma BLENDER_REQUIRE(common_view_lib.glsl) void main() { @@ -10,9 +8,7 @@ void main() vec3 world_pos = point_object_to_world(pos); gl_Position = point_world_to_ndc(world_pos); - vertFlag = data; + vert.flag = data; -#ifdef USE_WORLD_CLIP_PLANES - world_clip_planes_calc_clip_distance(world_pos); -#endif + view_clipping_distances(world_pos); } |