diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/armature_dof_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/armature_dof_vert.glsl | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/armature_dof_vert.glsl b/source/blender/draw/engines/overlay/shaders/armature_dof_vert.glsl index 18a80fc1fb4..b3c9ce5dfd2 100644 --- a/source/blender/draw/engines/overlay/shaders/armature_dof_vert.glsl +++ b/source/blender/draw/engines/overlay/shaders/armature_dof_vert.glsl @@ -1,17 +1,6 @@ -/* ---- Instantiated Attrs ---- */ -in vec2 pos; - -/* ---- Per instance Attrs ---- */ -/* Assumed to be in world coordinate already. */ -in vec4 color; -in mat4 inst_obmat; - -flat out vec4 finalColor; -#ifdef EDGE -flat out vec2 edgeStart; -noperspective out vec2 edgePos; -#endif +#pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl) +#pragma BLENDER_REQUIRE(common_view_lib.glsl) vec3 sphere_project(float ax, float az) { @@ -37,11 +26,7 @@ void main() gl_Position = point_world_to_ndc(world_pos); finalColor = color; -#ifdef EDGE - edgeStart = edgePos = ((gl_Position.xy / gl_Position.w) * 0.5 + 0.5) * sizeViewport.xy; -#endif + edgeStart = edgePos = ((gl_Position.xy / gl_Position.w) * 0.5 + 0.5) * sizeViewport; -#ifdef USE_WORLD_CLIP_PLANES - world_clip_planes_calc_clip_distance(world_pos); -#endif + view_clipping_distances(world_pos); } |