diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/facing_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/facing_vert.glsl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/facing_vert.glsl b/source/blender/draw/engines/overlay/shaders/facing_vert.glsl index 2dd84c0a060..d98caee6a25 100644 --- a/source/blender/draw/engines/overlay/shaders/facing_vert.glsl +++ b/source/blender/draw/engines/overlay/shaders/facing_vert.glsl @@ -1,12 +1,10 @@ -in vec3 pos; +#pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl) +#pragma BLENDER_REQUIRE(common_view_lib.glsl) void main() { vec3 world_pos = point_object_to_world(pos); gl_Position = point_world_to_ndc(world_pos); - -#ifdef USE_WORLD_CLIP_PLANES - world_clip_planes_calc_clip_distance(world_pos); -#endif + view_clipping_distances(world_pos); } |