From b1f0270316ccab479e28c31f7b8854f76b26316d Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 24 Jan 2023 12:05:25 -0800 Subject: [PATCH] Change threshold for bevel reduction --- manimlib/shaders/quadratic_bezier_stroke/geom.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manimlib/shaders/quadratic_bezier_stroke/geom.glsl b/manimlib/shaders/quadratic_bezier_stroke/geom.glsl index bcf288b9..ef5029d0 100644 --- a/manimlib/shaders/quadratic_bezier_stroke/geom.glsl +++ b/manimlib/shaders/quadratic_bezier_stroke/geom.glsl @@ -100,8 +100,8 @@ void get_corners( float buff2 = 0.5 * v_stroke_width[2] + aaw; // Add correction for sharp angles to prevent weird bevel effects - if(v_joint_product[0].w < -0.75) buff0 *= 4 * (v_joint_product[0].w + 1.0); - if(v_joint_product[2].w < -0.75) buff2 *= 4 * (v_joint_product[2].w + 1.0); + if(v_joint_product[0].w < -0.9) buff0 *= 10 * (v_joint_product[0].w + 1.0); + if(v_joint_product[2].w < -0.9) buff2 *= 10 * (v_joint_product[2].w + 1.0); // Unit normal and joint angles vec3 normal0 = get_joint_unit_normal(v_joint_product[0]);