From 4cb9c9c2fc930af55181ded6aa73f945872c3322 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 25 Jan 2023 08:18:10 -0800 Subject: [PATCH] Remove unnecessary normalize --- manimlib/shaders/quadratic_bezier_stroke/geom.glsl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manimlib/shaders/quadratic_bezier_stroke/geom.glsl b/manimlib/shaders/quadratic_bezier_stroke/geom.glsl index 1364ae60..96e3f1b2 100644 --- a/manimlib/shaders/quadratic_bezier_stroke/geom.glsl +++ b/manimlib/shaders/quadratic_bezier_stroke/geom.glsl @@ -100,7 +100,6 @@ void get_corners( float buff2 = 0.5 * v_stroke_width[2] + aaw; vec4 jp0 = normalize(v_joint_product[0]); - vec4 jp1 = normalize(v_joint_product[1]); vec4 jp2 = normalize(v_joint_product[2]); // Add correction for sharp angles to prevent weird bevel effects @@ -140,7 +139,7 @@ void get_corners( vec3 c5 = p2 - p2_perp; // Move the inner middle control point to make // room for the curve - float orientation = dot(normal0, jp1.xyz); + float orientation = dot(normal0, v_joint_product[1].xyz); if(orientation >= 0.0) c2 = 0.5 * (c0 + c4); else if(orientation < 0.0) c3 = 0.5 * (c1 + c5);