diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl b/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl index cb07c535200..1ae204de60d 100644 --- a/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl +++ b/source/blender/draw/modes/shaders/overlay_face_wireframe_vert.glsl @@ -43,6 +43,10 @@ void main() gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); facing_g = normalize(NormalMatrix * nor).z; + +#ifdef USE_WORLD_CLIP_PLANES + world_clip_planes_calc_clip_distance((ModelMatrix * vec4(pos, 1.0)).xyz); +#endif } #else /* SELECT_EDGES */ |