mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Double the size of the fill canvas, to effectively do msaa
This commit is contained in:
parent
04347e7876
commit
4a6e6ca646
1 changed files with 2 additions and 1 deletions
|
@ -148,7 +148,8 @@ def get_fill_canvas(ctx: moderngl.Context) -> Tuple[Framebuffer, VertexArray]:
|
||||||
along with the rgb value which is meant to be discarded.
|
along with the rgb value which is meant to be discarded.
|
||||||
"""
|
"""
|
||||||
cam_config = get_configuration(parse_cli())['camera_config']
|
cam_config = get_configuration(parse_cli())['camera_config']
|
||||||
size = (cam_config['pixel_width'], cam_config['pixel_height'])
|
# Double the size so as to effectively to 4x multi-sample antialiasing
|
||||||
|
size = (2 * cam_config['pixel_width'], 2 * cam_config['pixel_height'])
|
||||||
|
|
||||||
# Important to make sure dtype is floating point (not fixed point)
|
# Important to make sure dtype is floating point (not fixed point)
|
||||||
# so that alpha values can be negative and are not clipped
|
# so that alpha values can be negative and are not clipped
|
||||||
|
|
Loading…
Add table
Reference in a new issue