diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/sculpt_mask_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/sculpt_mask_vert.glsl | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/sculpt_mask_vert.glsl b/source/blender/draw/engines/overlay/shaders/sculpt_mask_vert.glsl index f2b827738ac..36c0e6a0acf 100644 --- a/source/blender/draw/engines/overlay/shaders/sculpt_mask_vert.glsl +++ b/source/blender/draw/engines/overlay/shaders/sculpt_mask_vert.glsl @@ -1,15 +1,5 @@ - -uniform float maskOpacity; -uniform float faceSetsOpacity; - -in vec3 pos; -in vec3 fset; -in float msk; - -out vec4 finalColor; - -flat out vec3 faceset_color; -out float mask_color; +#pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl) +#pragma BLENDER_REQUIRE(common_view_lib.glsl) void main() { @@ -19,7 +9,5 @@ void main() faceset_color = mix(vec3(1.0), fset, faceSetsOpacity); mask_color = 1.0 - (msk * maskOpacity); -#ifdef USE_WORLD_CLIP_PLANES - world_clip_planes_calc_clip_distance(world_pos); -#endif + view_clipping_distances(world_pos); } |