[Bf-blender-cvs] [9364ae39848] tmp-overlay-engine: Fix groundline not being clipped by Alt+B box clipping

Clément Foucault noreply at git.blender.org
Fri Nov 15 01:35:31 CET 2019


Commit: 9364ae3984877cc6f47f0aef4cc505ad688b40b6
Author: Clément Foucault
Date:   Thu Nov 14 01:58:57 2019 +0100
Branches: tmp-overlay-engine
https://developer.blender.org/rB9364ae3984877cc6f47f0aef4cc505ad688b40b6

Fix groundline not being clipped by Alt+B box clipping

===================================================================

M	source/blender/draw/engines/overlay/shaders/extra_groundline_vert.glsl

===================================================================

diff --git a/source/blender/draw/engines/overlay/shaders/extra_groundline_vert.glsl b/source/blender/draw/engines/overlay/shaders/extra_groundline_vert.glsl
index 464872b0d93..73630f2b945 100644
--- a/source/blender/draw/engines/overlay/shaders/extra_groundline_vert.glsl
+++ b/source/blender/draw/engines/overlay/shaders/extra_groundline_vert.glsl
@@ -18,4 +18,8 @@ void main()
   vec3 world_pos = p + screen_pos * screen_size;
 
   gl_Position = point_world_to_ndc(world_pos);
+
+#ifdef USE_WORLD_CLIP_PLANES
+  world_clip_planes_calc_clip_distance(world_pos);
+#endif
 }
\ No newline at end of file



More information about the Bf-blender-cvs mailing list