Commit graph

5743 commits

Author SHA1 Message Date
Grant Sanderson
c4777015fc FIx Mobject.replace_shader_code 2023-02-02 20:47:55 -08:00
Grant Sanderson
d10745a379 Have CameraFrame.get_view_matrix and and CameraFrame.get_implied_camera_location use _data_has_changed instead of a refresh arg 2023-02-02 20:47:12 -08:00
Grant Sanderson
88959df7a8 Use set_color instead of set_rgba_array in vector_field 2023-02-02 18:24:12 -08:00
Grant Sanderson
3d0fe27c55 Simplify VMobject.set_rgba_array 2023-02-02 18:23:41 -08:00
Grant Sanderson
4629e08769 Ensure joint_products are computed at both the start and end of an animation 2023-02-02 18:17:12 -08:00
Grant Sanderson
009f9dd18b Don't call become at the end of Transform 2023-02-02 18:16:44 -08:00
Grant Sanderson
7f940fbee4 Change how ShaderWrapper uniforms are handled 2023-02-02 17:45:52 -08:00
Grant Sanderson
1dcc678b2f Make sure animating a VGroup uniforms will have an effect 2023-02-02 16:18:09 -08:00
Grant Sanderson
ad2e7144b4 Lock uniform keys, the same way data keys are 2023-02-02 16:17:26 -08:00
Grant Sanderson
e36719a21b Use resize_points in Mobject.set_data 2023-02-02 15:37:10 -08:00
Grant Sanderson
c4d698a169 Have Transform only copy target_mobject if it must 2023-02-02 15:36:58 -08:00
Grant Sanderson
0e60b124eb Only compute const_data_keys for unlocked data 2023-02-02 15:02:55 -08:00
Grant Sanderson
d263fa23fa
Merge pull request #1986 from 3b1b/video-work
A few small performance improvements
2023-02-02 14:49:49 -08:00
Grant Sanderson
6f2cbc4d1f Merge branch 'master' of github.com:3b1b/manim into video-work 2023-02-02 14:47:44 -08:00
Grant Sanderson
4e674e571c
Merge pull request #1987 from 3b1b/interactive-scene-update
Interactive scene update
2023-02-02 14:47:32 -08:00
Grant Sanderson
be602930c3 Check that scene has a camera frame in pixel_to_point_coords 2023-02-02 14:46:07 -08:00
Grant Sanderson
9cadfa1818 Make it so that copying a mobject will copy its name, if applicable 2023-02-02 14:46:07 -08:00
Grant Sanderson
b9d37a9f7e Add copy_frame_anim_call 2023-02-02 14:46:07 -08:00
Grant Sanderson
d0c6d4d386 Accept list of Vect3 as an input to Mobject.set_points 2023-02-02 14:46:07 -08:00
Grant Sanderson
3c0d682efc Change clicking behavior in InteractiveScene 2023-02-02 14:46:07 -08:00
Grant Sanderson
63dbe3b23f More direct check for family_members_with_points 2023-02-02 14:32:55 -08:00
Grant Sanderson
bd89056c8e Only recalculate outer_vert_indices when points are resized 2023-02-02 14:29:37 -08:00
Grant Sanderson
b9d6dcd67d Save _has_fill and _has_stroke to prevent unnecessary recalculation 2023-02-02 14:26:08 -08:00
Grant Sanderson
e5eed7c36a Batch render groups by Mobject type 2023-02-02 13:28:06 -08:00
Grant Sanderson
acb4b1c6b3 Finalize color at the vertex level, rather than the fragment level, for fill 2023-02-02 12:04:23 -08:00
Grant Sanderson
a1b9eae301 Merge branch 'master' of github.com:3b1b/manim into video-work 2023-02-02 11:40:23 -08:00
Grant Sanderson
7476740980
Merge pull request #1985 from 3b1b/cleaner-winding-fill
Cleaner winding fill
2023-02-02 11:39:18 -08:00
Grant Sanderson
c3823e722d Update fill shader alpha blending, and simplify the fill canvas 2023-02-02 11:28:20 -08:00
Grant Sanderson
0cf9a35367 Have SVG subdivide intersections if winding fill is not a default 2023-02-02 11:28:20 -08:00
Grant Sanderson
594b9258da Account for unnecessary calls to use_winding_fill 2023-02-02 11:28:20 -08:00
Grant Sanderson
4ec2e8b0c5 Merge branch 'master' of github.com:3b1b/manim into video-work 2023-02-02 11:22:58 -08:00
Grant Sanderson
260815c675
Merge pull request #1984 from 3b1b/safer-self
Use typing_extensions to import Self for python versions <3.11
2023-02-02 11:22:33 -08:00
Grant Sanderson
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
Grant Sanderson
17cef427f1 Update fill shader alpha blending, and simplify the fill canvas 2023-02-02 10:42:24 -08:00
Grant Sanderson
b499caaa45 Have SVG subdivide intersections if winding fill is not a default 2023-02-02 10:40:09 -08:00
Grant Sanderson
9c03a40d68 Account for unnecessary calls to use_winding_fill 2023-02-02 10:39:30 -08:00
Grant Sanderson
47672d3b1e Add checks for setting submobjects with existing list 2023-02-01 22:52:59 -08:00
Grant Sanderson
eeadbe4542 Small reshuffling 2023-02-01 22:52:02 -08:00
Grant Sanderson
8adf2a6e07 Partition render groups based on shader type, fixed_in_frame status, depth_test and whether the mobject is changing 2023-02-01 20:39:16 -08:00
Grant Sanderson
6eafdc63cc Merge branch 'video-work' into render-groups 2023-02-01 20:17:01 -08:00
Grant Sanderson
ebf2ee5849 Update tex patterns 2023-02-01 20:12:06 -08:00
Grant Sanderson
f4a6f99b54 Check _use_winding_fill on the submobject level 2023-02-01 20:11:50 -08:00
Grant Sanderson
8820af65ec Check that scene has a camera frame in pixel_to_point_coords 2023-02-01 20:11:31 -08:00
Grant Sanderson
f83c441210 Make it so that copying a mobject will copy its name, if applicable 2023-02-01 13:35:46 -08:00
Grant Sanderson
f293ccdff4 Add copy_frame_anim_call 2023-02-01 13:35:10 -08:00
Grant Sanderson
40bcb7e0f3 Accept list of Vect3 as an input to Mobject.set_points 2023-02-01 13:02:56 -08:00
Grant Sanderson
979589a156 Change clicking behavior in InteractiveScene 2023-02-01 13:02:34 -08:00
Grant Sanderson
9ef14c7260 Change default h_buff on Matrix 2023-02-01 11:38:54 -08:00
Grant Sanderson
c062592684 Draw border width behind fill 2023-02-01 11:36:54 -08:00
Grant Sanderson
c8b65d5621
Merge pull request #1982 from 3b1b/video-work
Various bug fixes and tweaks
2023-02-01 11:28:42 -08:00