mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 03:37:44 +00:00
Have stroke width change continuously with fixed_in_frame status
This commit is contained in:
parent
2c110790d2
commit
27f397e0a6
1 changed files with 1 additions and 3 deletions
|
|
@ -21,9 +21,7 @@ const float STROKE_WIDTH_CONVERSION = 0.01;
|
|||
void main(){
|
||||
verts = point;
|
||||
v_stroke_width = STROKE_WIDTH_CONVERSION * stroke_width;
|
||||
if(!bool(is_fixed_in_frame)){
|
||||
v_stroke_width *= frame_scale;
|
||||
}
|
||||
v_stroke_width *= mix(frame_scale, 1, is_fixed_in_frame);
|
||||
v_joint_product = joint_product;
|
||||
v_color = stroke_rgba;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue