Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/draw/modes/shaders/edit_normals_geom.glsl')
-rw-r--r--source/blender/draw/modes/shaders/edit_normals_geom.glsl8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/draw/modes/shaders/edit_normals_geom.glsl b/source/blender/draw/modes/shaders/edit_normals_geom.glsl
index 50214c75e6a..91a57a79eb0 100644
--- a/source/blender/draw/modes/shaders/edit_normals_geom.glsl
+++ b/source/blender/draw/modes/shaders/edit_normals_geom.glsl
@@ -2,10 +2,6 @@
layout(points) in;
layout(line_strip, max_vertices=2) out;
-#ifdef USE_WORLD_CLIP_PLANES
-uniform int WorldClipPlanesLen;
-#endif
-
flat in vec4 v1[1];
flat in vec4 v2[1];
@@ -14,9 +10,7 @@ void main()
for (int v = 0; v < 2; v++) {
gl_Position = (v == 0) ? v1[0] : v2[0];
#ifdef USE_WORLD_CLIP_PLANES
- for (int i = 0; i < WorldClipPlanesLen; i++) {
- gl_ClipDistance[i] = gl_in[0].gl_ClipDistance[i];
- }
+ world_clip_planes_set_clip_distance(gl_in[0].gl_ClipDistance);
#endif
EmitVertex();
}