439 Commits

Author SHA1 Message Date
4ec2e8b0c5 Merge branch 'master' of github.com:3b1b/manim into video-work 2023-02-02 11:22:58 -08:00
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
9c03a40d68 Account for unnecessary calls to use_winding_fill 2023-02-02 10:39:30 -08:00
f4a6f99b54 Check _use_winding_fill on the submobject level 2023-02-01 20:11:50 -08:00
c062592684 Draw border width behind fill 2023-02-01 11:36:54 -08:00
280090a7c9 Small reorganization to VMobject.get_shader_wrapper_list, and default to fill border being drawn up front 2023-02-01 11:24:46 -08:00
c8d1ee5c88 No longer any need for specialized invisible_copy 2023-01-31 20:16:05 -08:00
f858a439dd Make alignment between VMobjects conducive to smoother interpolation 2023-01-31 20:15:48 -08:00
4c327cd5d2 Merge branch 'add-self-type' into video-work 2023-01-31 14:26:31 -08:00
af585ca3a1 Add Self type to dot_cloud.py and point_cloud_mobject.py 2023-01-31 13:49:48 -08:00
3779577d9f Add Self type to surface.py 2023-01-31 13:47:25 -08:00
b58224f6c8 Add Self type to vectorized_mobject.py 2023-01-31 13:43:54 -08:00
60aae748a7 Make sure animations will trigger a refresh for joint products 2023-01-31 12:49:02 -08:00
2d0bdfbdb6 Merge branch 'glitch-fix' into video-work 2023-01-31 11:59:54 -08:00
9e5fca6750 Merge branch 'type-error-fix' into video-work 2023-01-31 11:58:09 -08:00
2cbad30f45 Change VMobject rendering mode to TRIANGLES
And set indices appropriately when reading in to the ShaderWrapper
2023-01-31 11:45:53 -08:00
76ee97adfa Possible fix for a type error 2023-01-31 08:48:57 -08:00
e7734ca84c Fix TexturedSurface 2023-01-30 20:57:21 -08:00
5ff44f5850 Divide by epsilon prior to normalizing 2023-01-30 20:51:04 -08:00
55da5d5d03 Remove use of dv_points and du_points, pass unit normals to shader instead 2023-01-30 20:49:32 -08:00
b3dec3fd51 Small fixes 2023-01-28 17:53:49 -08:00
c6db74c996 Re-order conditional blocks 2023-01-28 13:06:23 -08:00
8d72340501 Remove some references to triangulation 2023-01-28 12:43:56 -08:00
2a3f927566 Set defaults so that VMobjects will have no antialias width when depth test is turned on 2023-01-28 11:39:31 -08:00
c7ef4eefbc Add getter/setter for anti_alias_width 2023-01-28 11:35:26 -08:00
ce5d0b61f9 Add back accidentally deleted reverse_points code 2023-01-27 16:58:22 -08:00
71ef39ea5b Remove "poor man's anti-aliasing" for Fill and instead render a small border width for fill 2023-01-27 16:15:20 -08:00
1f6363821b Have VMobject inherit children uniforms when rendering 2023-01-27 14:48:57 -08:00
e57ca4e1ee Track orientation for non-winding fill 2023-01-27 12:43:21 -08:00
86fb69c5bb Track unit normal for fill 2023-01-27 12:35:43 -08:00
b21e470e69 In append_vectorized_mobject, append data as well as points 2023-01-26 23:43:21 -08:00
ab57b0acf0 Ensure positive orientation on all SVG, not just PathStrings 2023-01-26 21:00:07 -08:00
3a175c1a4c Note that sorting surface indices affects data 2023-01-26 20:02:28 -08:00
258bc2256a Provide a check that shader uniforms really need updating before setting value 2023-01-26 20:01:59 -08:00
9696827213 Allow for adding null subpath 2023-01-26 16:50:22 -08:00
6d4782506a Account for null fill cases in invinisble_copy 2023-01-26 16:49:36 -08:00
a33b24310e Fix non-winding-fill orientation 2023-01-26 12:15:30 -08:00
72590a8fef Note that using winding fill changes data 2023-01-26 12:04:34 -08:00
018b07212f Change how joint_products are updated in pointwise_become_partial 2023-01-25 16:50:52 -08:00
d2af6a5f4b Keep track of when Mobject data has changed, and used that to determine when ShaderWrapper generates new buffers 2023-01-25 16:43:47 -08:00
2c737ed540 Move most of rendering logic to ShaderWrapper 2023-01-25 13:45:18 -08:00
c94d8fd3b0 Move Texture handling and vao creation outside of Camera 2023-01-25 12:10:39 -08:00
10047773f7 Have ShaderWrapper track OpenGL context 2023-01-25 10:49:30 -08:00
16d773f1b3 Remove refresh_shader_data 2023-01-25 10:48:59 -08:00
80729c0cb8 Only initialize ShaderWrappers as needed 2023-01-25 10:37:12 -08:00
8c1e5f3b42 Change use_clip_plane to be a function 2023-01-25 10:31:05 -08:00
a9a3ca08cd Merge pull request #1972 from 3b1b/winding-fill
Winding fill
2023-01-25 10:01:31 -08:00
bc5c78de83 Add winding fill to VMobject args 2023-01-25 09:56:07 -08:00
93dd9f687b Ensure align_family works well with VMobject fill 2023-01-25 09:50:16 -08:00
6cf8c8d2e8 Do refresh in pointwise_become_partial 2023-01-24 21:47:12 -08:00