5423 Commits

Author SHA1 Message Date
c7e32e847d Delete no-longer used functions 2023-01-17 17:46:23 -08:00
5e1a02d2ce Use xyz-to-uv matrix for fill 2023-01-17 17:45:25 -08:00
9ed8dd5439 Clean up 2023-01-17 17:39:32 -08:00
b7831ef3f1 Go back to computing xyz-to-uv before repositioning 2023-01-17 17:27:20 -08:00
c2587de691 Apply xyz_to_uv to pre-positioned points 2023-01-17 17:22:00 -08:00
c563ec2036 Simplifications 2023-01-17 17:20:30 -08:00
870e88f8c9 First attempt at finding uv coords from 3d space instead of 2d 2023-01-17 15:46:09 -08:00
7fe84d9263 Don't recompute cross(v01, v12) 2023-01-17 13:18:32 -08:00
1b3bc7a27c For linearity, check cosine of angle instead of angle 2023-01-17 13:16:58 -08:00
b16f0981f6 No need to set flat stroke defaults in Polygon/Polyline 2023-01-17 11:37:06 -08:00
abbe131e8d Track full cross product and dot product of tangent vectors at joints
And alter the convention of what flat_stroke means to be more sensible in 3d
2023-01-17 11:36:47 -08:00
4de0d098ea Allow cross to take an 'out' array 2023-01-17 11:35:50 -08:00
ed2dbfd9b9 Remove unused imports 2023-01-16 21:48:11 -08:00
8d277af47c Go back the convention of positioning stroke vertices in space before geom shader 2023-01-16 21:46:43 -08:00
8ac0aa484b Slight tweak to get_unit_normal 2023-01-16 19:34:37 -08:00
1f613953d6 Don't pre-rotate light source 2023-01-16 19:34:20 -08:00
c3cd64f68c Package reflectiveness, gloss and shadow into a single uniform "shading" 2023-01-16 19:33:57 -08:00
6e6a30c95a Be sure joint_angles are updated immediately before being read into a shader wrapper 2023-01-16 14:28:53 -08:00
20222bc7e9 Update imports 2023-01-16 14:18:49 -08:00
f15ac81131 Pull out helper functions from shader_wrapper.py 2023-01-16 14:18:35 -08:00
7050c7e7b0 Change type for Surface.shader_dtype 2023-01-16 14:11:30 -08:00
161bf7377d Merge pull request #1965 from 3b1b/data-arrays
Data arrays
2023-01-16 14:06:56 -08:00
bd2d45ebc6 Handle edge case of low ring end 2023-01-16 14:00:53 -08:00
dd0e91015c Account for null family case 2023-01-16 13:56:03 -08:00
1a15756330 Make sure Mobject.become works with bounding_box 2023-01-16 13:55:53 -08:00
8ef93b0f9d Treat font_size as a float 2023-01-16 13:43:48 -08:00
a46e580fa4 Make sure resize_preserving_order preserves data type 2023-01-16 13:37:06 -08:00
3b40ccc987 In Mobject.append_points, have most data default to the last value 2023-01-16 13:29:35 -08:00
ae50748717 Default to resizing_preserving_order in set_points 2023-01-16 13:28:09 -08:00
c23f020d9a Add Mobject.const_data_keys so that interpolations can be faster 2023-01-16 13:27:20 -08:00
db45d9e646 Add array_is_constant 2023-01-16 13:26:44 -08:00
f5480d02ff Tidy up ShaderWrapper.read_in 2023-01-16 13:26:34 -08:00
3f8c861973 Rename draw_stroke_behind_fill -> stroke_behind 2023-01-16 11:53:07 -08:00
3a09acd28c Update type hint for ShaderWrapper.uniforms 2023-01-16 11:50:48 -08:00
bdcfbc39ec Cleanup VMobject shader wrapper methods
Deleting those which are no longer needed
2023-01-16 11:50:31 -08:00
74b42a6eb5 Small renaming 2023-01-16 08:59:50 -08:00
5a95bfa70f Delete align_stroke_width_data_to_points 2023-01-15 21:28:19 -08:00
eba86be35b Use resize_preserving_order in aligning VMobjects 2023-01-15 21:23:56 -08:00
2ca8848007 Merge branch 'master' of github.com:3b1b/manim into data-arrays 2023-01-15 21:08:55 -08:00
afbc624ac4 Merge pull request #1964 from 3b1b/video-work
Fix index buffer bug
2023-01-15 21:08:25 -08:00
77a3984683 Fix index buffer bug 2023-01-15 21:06:55 -08:00
29f51a7c6a Check if joint_angles are in locked_data_keys before computing 2023-01-15 20:31:27 -08:00
ba9f61b50b Have ShaderWrapper read in data rather than other shader wrappers 2023-01-15 20:27:19 -08:00
f63331eb24 Use Mobject.data in place of shader_data, remove read_data_into_shader 2023-01-15 20:01:37 -08:00
6f9f83fb1b Unify shader_dtype and data_dtype 2023-01-15 19:09:29 -08:00
3f2fd5b142 Update calculation of path ends to not include adjacent pairs 2023-01-15 18:27:08 -08:00
90ac1fc0bf Rename 'points' -> 'point' 2023-01-15 18:23:41 -08:00
3ba5237f9b Account for edge case with end of loop near end 2023-01-15 18:10:38 -08:00
408890e0d9 Update TexturedSurface for using a data array 2023-01-15 18:02:16 -08:00
9704f063c9 Use pointlike_data_keys for interpolation and rotation 2023-01-15 18:01:37 -08:00