diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/overlay_armature_shape_outline_vert_no_geom.glsl')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/overlay_armature_shape_outline_vert_no_geom.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/overlay_armature_shape_outline_vert_no_geom.glsl b/source/blender/draw/engines/overlay/shaders/overlay_armature_shape_outline_vert_no_geom.glsl index 87447b9d7ea..57c0ecb0b9b 100644 --- a/source/blender/draw/engines/overlay/shaders/overlay_armature_shape_outline_vert_no_geom.glsl +++ b/source/blender/draw/engines/overlay/shaders/overlay_armature_shape_outline_vert_no_geom.glsl @@ -160,7 +160,7 @@ void main() if (line_vertex_id == 0) { gl_Position = pPos[1]; /* Offset away from the center to avoid overlap with solid shape. */ - gl_Position.xy += (edge_dir - perp) * drw_view.viewport_size_inverse * gl_Position.w; + gl_Position.xy += (edge_dir - perp) * sizeViewportInv * gl_Position.w; /* Improve AA bleeding inside bone silhouette. */ gl_Position.z -= (is_persp) ? 1e-4 : 1e-6; edgeStart = edgePos = ((gl_Position.xy / gl_Position.w) * 0.5 + 0.5) * sizeViewport.xy; @@ -169,7 +169,7 @@ void main() else { gl_Position = pPos[2]; /* Offset away from the center to avoid overlap with solid shape. */ - gl_Position.xy += (edge_dir + perp) * drw_view.viewport_size_inverse * gl_Position.w; + gl_Position.xy += (edge_dir + perp) * sizeViewportInv * gl_Position.w; /* Improve AA bleeding inside bone silhouette. */ gl_Position.z -= (is_persp) ? 1e-4 : 1e-6; edgeStart = edgePos = ((gl_Position.xy / gl_Position.w) * 0.5 + 0.5) * sizeViewport.xy; |