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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mesh_snap_utilities_line/snap_context_l/shaders/ID_color_frag.glsl')
-rw-r--r--mesh_snap_utilities_line/snap_context_l/shaders/ID_color_frag.glsl17
1 files changed, 0 insertions, 17 deletions
diff --git a/mesh_snap_utilities_line/snap_context_l/shaders/ID_color_frag.glsl b/mesh_snap_utilities_line/snap_context_l/shaders/ID_color_frag.glsl
index 3e01f7b0..e28368be 100644
--- a/mesh_snap_utilities_line/snap_context_l/shaders/ID_color_frag.glsl
+++ b/mesh_snap_utilities_line/snap_context_l/shaders/ID_color_frag.glsl
@@ -1,24 +1,7 @@
uniform int offset;
-
-#ifdef USE_CLIP_PLANES
-uniform bool use_clip_planes;
-in vec4 clip_distance;
-#endif
-
out uint FragColor;
void main()
{
-#ifdef USE_CLIP_PLANES
- if (use_clip_planes &&
- ((clip_distance[0] < 0) ||
- (clip_distance[1] < 0) ||
- (clip_distance[2] < 0) ||
- (clip_distance[3] < 0)))
- {
- discard;
- }
-#endif
-
FragColor = uint(gl_PrimitiveID + offset);
}