diff options
Diffstat (limited to 'source/blender/draw/modes/shaders/edit_mesh_overlay_geom.glsl')
-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(); } |