diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 14:06:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 14:06:14 +0300 |
commit | e4187771099c2795b8d1d8f79a1d1b91b57d45d5 (patch) | |
tree | 66d6224e175aaddd0806c4dacd930e46d8195701 /source/blender/draw/modes | |
parent | 2855feb2ae06cc8029ec7f459b32b9d37e8fff38 (diff) |
DRW: edit-mesh edge clipping broke in recent update
Diffstat (limited to 'source/blender/draw/modes')
-rw-r--r-- | source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl b/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl index fcedbd759aa..b36c1ff869f 100644 --- a/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl +++ b/source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl @@ -21,6 +21,9 @@ void do_vertex(const int i, float coord, vec2 offset) gl_Position = gl_in[i].gl_Position; /* Multiply offset by 2 because gl_Position range is [-1..1]. */ gl_Position.xy += offset * 2.0 * gl_Position.w; +#ifdef USE_WORLD_CLIP_PLANES + world_clip_planes_set_clip_distance(gl_in[i].gl_ClipDistance); +#endif EmitVertex(); } |