Commit graph

341 commits

Author SHA1 Message Date
Grant Sanderson
15d8ebb572 Add Mobject.set_shape 2023-01-30 11:53:15 -08:00
Grant Sanderson
ab03a0cfba Add Mobject.set_uniform 2023-01-28 11:35:15 -08:00
Grant Sanderson
05a80f53a7 Make sure depth test calls map to the whole family 2023-01-28 10:37:34 -08:00
Grant Sanderson
1a62314719 Add a "clear" option for Mobjects
This not only sets the submobject list to 0, but removes self from the parent lists
2023-01-28 10:11:22 -08:00
Grant Sanderson
047128a663 Make sure shader_wrapper inherits depth test 2023-01-27 19:27:42 -08:00
Grant Sanderson
d5b1a1725d Allow Mobject.remove to remove any family member, not just immediate submobjects 2023-01-27 15:15:16 -08:00
Grant Sanderson
35c19fe8a7 Edit is_fixed_in_frame 2023-01-27 14:48:31 -08:00
Grant Sanderson
86fb1d82f5 Typo fix 2023-01-26 23:44:33 -08:00
Grant Sanderson
2863672740 Small clean up 2023-01-26 23:05:09 -08:00
Grant Sanderson
eab8edd51d Remove needless list(...) 2023-01-26 22:41:36 -08:00
Grant Sanderson
1bd6a77151 Don't use @stash_mobject_pointers on copy, be more explicit 2023-01-26 20:59:36 -08:00
Grant Sanderson
258bc2256a Provide a check that shader uniforms really need updating before setting value 2023-01-26 20:01:59 -08:00
Grant Sanderson
28c875c2c3 Finish Transforms with a call to Mobject.become 2023-01-26 16:49:13 -08:00
Grant Sanderson
164c9ba754 Use copy in set_data 2023-01-26 16:46:05 -08:00
Grant Sanderson
8ef71bb930 Don't use 'become' for interpolate at alpha = 0 or 1 2023-01-26 16:43:40 -08:00
Grant Sanderson
a8da171adb Make sure a group inherits the fixed_in_frame status of its parts 2023-01-26 15:58:56 -08:00
Grant Sanderson
c6c23a1fe7 Unnecessary refresh_bounding_box 2023-01-26 12:06:13 -08:00
Grant Sanderson
f5cb2bfa52 Check for mismatched keys in uniform interpolation 2023-01-26 12:06:05 -08:00
Grant Sanderson
cb36fda6d7 In interpolate, only update data status if some keys are unlocked 2023-01-25 19:24:19 -08:00
Grant Sanderson
88590e5a05 Remove serializing deepcopy 2023-01-25 19:23:55 -08:00
Grant Sanderson
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
Grant Sanderson
424707d035 Move rendering more fully away from Camera to Mobject and ShaderWrapper 2023-01-25 14:13:56 -08:00
Grant Sanderson
2c737ed540 Move most of rendering logic to ShaderWrapper 2023-01-25 13:45:18 -08:00
Grant Sanderson
c94d8fd3b0 Move Texture handling and vao creation outside of Camera 2023-01-25 12:10:39 -08:00
Grant Sanderson
10047773f7 Have ShaderWrapper track OpenGL context 2023-01-25 10:49:30 -08:00
Grant Sanderson
16d773f1b3 Remove refresh_shader_data 2023-01-25 10:48:59 -08:00
Grant Sanderson
80729c0cb8 Only initialize ShaderWrappers as needed 2023-01-25 10:37:12 -08:00
Grant Sanderson
93dd9f687b Ensure align_family works well with VMobject fill 2023-01-25 09:50:16 -08:00
Grant Sanderson
72da9786a3 Use null array for vert indices in place of None 2023-01-24 15:53:43 -08:00
Grant Sanderson
b93e284695 In aligning families, scale inserted submobjects to 0 2023-01-24 15:29:09 -08:00
Grant Sanderson
d01658bc5b Fix multi-color setting 2023-01-24 13:04:13 -08:00
Grant Sanderson
763967281f Don't use resize_with_interpolation by default 2023-01-19 09:51:19 -08:00
Grant Sanderson
c3cd64f68c Package reflectiveness, gloss and shadow into a single uniform "shading" 2023-01-16 19:33:57 -08:00
Grant Sanderson
20222bc7e9 Update imports 2023-01-16 14:18:49 -08:00
Grant Sanderson
1a15756330 Make sure Mobject.become works with bounding_box 2023-01-16 13:55:53 -08:00
Grant Sanderson
3b40ccc987 In Mobject.append_points, have most data default to the last value 2023-01-16 13:29:35 -08:00
Grant Sanderson
ae50748717 Default to resizing_preserving_order in set_points 2023-01-16 13:28:09 -08:00
Grant Sanderson
c23f020d9a Add Mobject.const_data_keys so that interpolations can be faster 2023-01-16 13:27:20 -08:00
Grant Sanderson
f63331eb24 Use Mobject.data in place of shader_data, remove read_data_into_shader 2023-01-15 20:01:37 -08:00
Grant Sanderson
6f9f83fb1b Unify shader_dtype and data_dtype 2023-01-15 19:09:29 -08:00
Grant Sanderson
90ac1fc0bf Rename 'points' -> 'point' 2023-01-15 18:23:41 -08:00
Grant Sanderson
9704f063c9 Use pointlike_data_keys for interpolation and rotation 2023-01-15 18:01:37 -08:00
Grant Sanderson
7e45558c55 Allow Mobject subclasses to specify which parts of data should act like points 2023-01-15 17:40:05 -08:00
Grant Sanderson
e37b667c8b Modify Mobject.interpolate 2023-01-15 16:49:24 -08:00
Grant Sanderson
2dafcb3e63 Remove check_data_alignment 2023-01-15 16:48:13 -08:00
Grant Sanderson
801f449ca0 Fix lock_matching_data 2023-01-15 16:46:27 -08:00
Grant Sanderson
f4c50f61b8 Change rgbas -> rgba 2023-01-15 16:46:03 -08:00
Grant Sanderson
2815f60616 First pass at changing data to structure numpy array
This doesn't yet tackle Surface
2023-01-15 16:05:18 -08:00
Grant Sanderson
286b8fb6c3 Set the stage for data to be treated as a structure numpy array 2023-01-15 12:34:59 -08:00
Grant Sanderson
da15eb4ad2 Remove a few direct references to data["points"] 2023-01-15 10:00:05 -08:00