mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 18:07:54 +00:00
Increase threshold for bevel tweaking
This commit is contained in:
parent
13c41be17f
commit
fa525b494c
1 changed files with 2 additions and 2 deletions
|
|
@ -104,8 +104,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.5) buff0 *= 2 * (v_joint_product[0].w + 1.0);
|
||||
if(v_joint_product[2].w < -0.5) buff2 *= 2 * (v_joint_product[2].w + 1.0);
|
||||
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);
|
||||
|
||||
// Unit normal and joint angles
|
||||
vec3 normal0 = get_joint_unit_normal(v_joint_product[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue