Skip to content

Commit

Permalink
Don't let stroke width vary with zoom levels
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Jul 19, 2022
1 parent eff9e6f commit de7d9ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manimlib/shaders/quadratic_bezier_stroke/vert.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ void main(){
next_bp = position_point_into_frame(next_point);
v_global_unit_normal = rotate_point_into_frame(unit_normal);

v_stroke_width = STROKE_WIDTH_CONVERSION * stroke_width;
v_stroke_width = STROKE_WIDTH_CONVERSION * stroke_width * frame_shape[1] / 8.0;
v_color = color;
}

0 comments on commit de7d9ce

Please sign in to comment.