Commit graph

6212 commits

Author SHA1 Message Date
Grant Sanderson
a08523d746 Fix get_subpath_end_indices_from_points 2024-08-23 13:29:31 -05:00
Grant Sanderson
bcafcbf490 Don't have VMobject refresh joint angles on shift, scale and rotate 2024-08-23 12:32:17 -05:00
Grant Sanderson
e4007f6915 Add glow dot to show light in SurfaceExample 2024-08-22 15:31:22 -05:00
Grant Sanderson
ada66ee8fb Remove stray comment 2024-08-22 15:31:10 -05:00
Grant Sanderson
bd2947be28 Use preferred group type for FadeTransform 2024-08-22 15:31:03 -05:00
Grant Sanderson
9a7bfdd1c9 For Surface, calculate normals with neighboring points 2024-08-22 15:21:40 -05:00
Grant Sanderson
c8d5e91422 Rename shader_dtype -> data_dtype 2024-08-22 14:52:35 -05:00
Grant Sanderson
09bed1f8f4 Allow more file_writer configuration in default_config.yml 2024-08-22 14:24:26 -05:00
Grant Sanderson
eda7f81fb9 Update VMobject.is_smooth 2024-08-21 17:22:34 -05:00
Grant Sanderson
d5575cf1ef Change how joint_angles are computed 2024-08-21 17:19:42 -05:00
Grant Sanderson
11df256369 Fix error rect 2024-08-21 16:49:08 -05:00
Grant Sanderson
cfe70ca869 Don't let Write override stroke_behind default 2024-08-21 16:47:51 -05:00
Grant Sanderson
bda894959b Keeps stroke width as a function of pixels, independent of zoom level 2024-08-21 16:12:56 -05:00
Grant Sanderson
d870bb29de Fix the non-flat stroke edge case for tangents near line of sight 2024-08-21 16:12:13 -05:00
Grant Sanderson
442206faad Go back to non-flat-stroke as the default 2024-08-21 16:05:02 -05:00
Grant Sanderson
ceac4fbe1a Fix up FillArrow 2024-08-21 15:58:57 -05:00
Grant Sanderson
22ee13a884 Have FillArrow take the place of StrokeArrow as the main Arrow 2024-08-21 14:52:54 -05:00
Grant Sanderson
eea8416d57 Default to allowing null lines, except for SVGPaths 2024-08-21 14:44:33 -05:00
Grant Sanderson
b3386ad7a7 Add an option for VMobject.add_line to add a null line 2024-08-21 14:29:40 -05:00
Grant Sanderson
c83d03aeb7 Simplify get_subpath_end_indices_from_points 2024-08-21 14:29:16 -05:00
Grant Sanderson
0a89725090 Tweaking what triggers refreshes 2024-08-21 13:57:54 -05:00
Grant Sanderson
0cb7a8f691 Only recompute subpath_end_indices as needed 2024-08-21 13:44:24 -05:00
Grant Sanderson
43f1704f69 Fix computation of joint_angles to handle zero division case 2024-08-21 13:44:00 -05:00
Grant Sanderson
941513d68c Only recompute VMobject.get_unit_normal as needed 2024-08-21 12:26:42 -05:00
Grant Sanderson
9a5386b022 Instead of passing in joint_products to stroke shader, just track joint_angles and pass in global unit normal 2024-08-21 11:59:48 -05:00
Grant Sanderson
67bedc6d1f Fix fill_depth_vert_format 2024-08-21 09:14:23 -05:00
Grant Sanderson
79ec791fc2 Move get_fill_canvas into VShaderWrapper 2024-08-21 09:02:22 -05:00
Grant Sanderson
748780378b Have stroke_behind default to True for VMobjects with fill and no stroke 2024-08-21 08:43:57 -05:00
Grant Sanderson
dfc5f152dd Have border width pre-multiply by alpha, and don't use a separate texture for that border width 2024-08-20 22:03:45 -05:00
Grant Sanderson
d0cb5b4eea Fix normal orientation on Surface 2024-08-20 14:47:47 -05:00
Grant Sanderson
35ce4c6704 Use Mobject.set_uniform in Mobject.set_shading 2024-08-20 14:44:48 -05:00
Grant Sanderson
7ddbd13e38 Ensure mobject uniforms get passed to ShaderWrapper on init 2024-08-20 14:44:09 -05:00
Grant Sanderson
304856e6e0 Remove indices_list argument on ShaderWrapper.read_in 2024-08-20 14:21:37 -05:00
Grant Sanderson
82582d08bd Fewer parameters for stroke frag shader 2024-08-20 13:32:52 -05:00
Grant Sanderson
a8784692e8 Reference new shader file structure 2024-08-20 12:58:53 -05:00
Grant Sanderson
0a313eb119 Reorganize quadratic bezier shader files 2024-08-20 12:58:34 -05:00
Grant Sanderson
5eb5a11499 Don't have absolute stroke width change with frame size (at least temporarily) 2024-08-20 12:36:28 -05:00
Grant Sanderson
0a585b123c Use stash_mobject_pointers on Mobject.deepcopy 2024-08-20 12:15:37 -05:00
Grant Sanderson
910f28f52e Don't have a default flat stroke in set_style 2024-08-20 12:13:18 -05:00
Grant Sanderson
7474ae17b0 Change default to flat stroke, except in 3d situations 2024-08-20 11:52:05 -05:00
Grant Sanderson
b8931e7b9c When shader_id is updated, have ancestors mark data as changed 2024-08-20 11:36:37 -05:00
Grant Sanderson
0414f8786c Use Mobject.set_uniform to reassign flat_stroke 2024-08-20 11:35:42 -05:00
Grant Sanderson
e0191d81d9 Instead of tracking _shaders_initialized, just check if self.shader_wrapper is None 2024-08-20 10:48:43 -05:00
Grant Sanderson
0ac9ee1fbf Don't deepcopy ShaderWrapper 2024-08-20 10:15:53 -05:00
Grant Sanderson
b9645ad196 Only update shader wrapper when stroke_behind genuinely changes 2024-08-20 10:00:52 -05:00
Grant Sanderson
87ca6e56aa Don't treat font size as a uniform 2024-08-20 10:00:07 -05:00
Grant Sanderson
e61957a4e0 Fix wrong check for path_func in last commit 2024-08-20 09:25:30 -05:00
Grant Sanderson
a8ef9629eb More direct lerp in Mobject.interpolate 2024-08-20 09:10:33 -05:00
Grant Sanderson
e796a0c6d6 Remove stray TODO 2024-08-20 09:10:14 -05:00
Grant Sanderson
5ff80ffc6c Fix matplotlib color map import 2024-08-20 08:54:06 -05:00