Commit graph

5744 commits

Author SHA1 Message Date
Grant Sanderson
148898f983 Fix insert_n_curves 2023-01-18 23:43:51 -08:00
Grant Sanderson
981fe009e5 Fix radius on dots 2023-01-18 23:43:36 -08:00
Grant Sanderson
22d2819ecf Improvements to make_smooth 2023-01-18 22:39:02 -08:00
Grant Sanderson
781e0a9805
Merge pull request #1966 from 3b1b/video-work
Various render improvements
2023-01-18 16:26:06 -08:00
Grant Sanderson
3820e098c0 Tweak to type hints 2023-01-18 16:25:32 -08:00
Grant Sanderson
8e2cf04b71 Simplify true_dot shaders 2023-01-18 15:36:00 -08:00
Grant Sanderson
cd3c5031fa Fix get_perspective_transform to shift before rotation 2023-01-18 13:59:50 -08:00
Grant Sanderson
6c2544098b Store pixel_size instead of pixel_shape 2023-01-18 13:50:09 -08:00
Grant Sanderson
b667d89e9b Simplify get_gl_Position 2023-01-18 13:44:41 -08:00
Grant Sanderson
fa525b494c Increase threshold for bevel tweaking 2023-01-18 13:07:37 -08:00
Grant Sanderson
13c41be17f Small clean up 2023-01-18 13:07:18 -08:00
Grant Sanderson
e20efda3df Revert away from using curve_to_quadratic 2023-01-18 13:03:23 -08:00
Grant Sanderson
8b3aa8f5c6 Account for edge cases on curve_to_quadratic 2023-01-18 12:52:47 -08:00
Grant Sanderson
d39fea0d4d A few small fixes 2023-01-18 12:52:05 -08:00
Grant Sanderson
96b0ec9094 Use fontTools.cu2qu.cu2qu import curve_to_quadratic 2023-01-18 12:29:25 -08:00
Grant Sanderson
40436d6370 Slightly cleaner xs_on_clean_parabola 2023-01-18 11:03:22 -08:00
Grant Sanderson
44e5f15ae9 Default to non-flat stroke for meshes 2023-01-18 10:58:37 -08:00
Grant Sanderson
72e5bde274 Rename xy-to-uv -> xyz-to-uv 2023-01-18 10:58:25 -08:00
Grant Sanderson
1a663943c9 Simpler xyz-to-uv map for linear case 2023-01-18 10:57:14 -08:00
Grant Sanderson
874906bedf Replace 'light_source_position' with 'light_position' 2023-01-18 10:04:51 -08:00
Grant Sanderson
0b72bc5d08 Fix joint normal issue 2023-01-18 10:04:05 -08:00
Grant Sanderson
c7e32e847d Delete no-longer used functions 2023-01-17 17:46:23 -08:00
Grant Sanderson
5e1a02d2ce Use xyz-to-uv matrix for fill 2023-01-17 17:45:25 -08:00
Grant Sanderson
9ed8dd5439 Clean up 2023-01-17 17:39:32 -08:00
Grant Sanderson
b7831ef3f1 Go back to computing xyz-to-uv before repositioning 2023-01-17 17:27:20 -08:00
Grant Sanderson
c2587de691 Apply xyz_to_uv to pre-positioned points 2023-01-17 17:22:00 -08:00
Grant Sanderson
c563ec2036 Simplifications 2023-01-17 17:20:30 -08:00
Grant Sanderson
870e88f8c9 First attempt at finding uv coords from 3d space instead of 2d 2023-01-17 15:46:09 -08:00
Grant Sanderson
7fe84d9263 Don't recompute cross(v01, v12) 2023-01-17 13:18:32 -08:00
Grant Sanderson
1b3bc7a27c For linearity, check cosine of angle instead of angle 2023-01-17 13:16:58 -08:00
Grant Sanderson
b16f0981f6 No need to set flat stroke defaults in Polygon/Polyline 2023-01-17 11:37:06 -08:00
Grant Sanderson
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
Grant Sanderson
4de0d098ea Allow cross to take an 'out' array 2023-01-17 11:35:50 -08:00
Grant Sanderson
ed2dbfd9b9 Remove unused imports 2023-01-16 21:48:11 -08:00
Grant Sanderson
8d277af47c Go back the convention of positioning stroke vertices in space before geom shader 2023-01-16 21:46:43 -08:00
Grant Sanderson
8ac0aa484b Slight tweak to get_unit_normal 2023-01-16 19:34:37 -08:00
Grant Sanderson
1f613953d6 Don't pre-rotate light source 2023-01-16 19:34:20 -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
6e6a30c95a Be sure joint_angles are updated immediately before being read into a shader wrapper 2023-01-16 14:28:53 -08:00
Grant Sanderson
20222bc7e9 Update imports 2023-01-16 14:18:49 -08:00
Grant Sanderson
f15ac81131 Pull out helper functions from shader_wrapper.py 2023-01-16 14:18:35 -08:00
Grant Sanderson
7050c7e7b0 Change type for Surface.shader_dtype 2023-01-16 14:11:30 -08:00
Grant Sanderson
161bf7377d
Merge pull request #1965 from 3b1b/data-arrays
Data arrays
2023-01-16 14:06:56 -08:00
Grant Sanderson
bd2d45ebc6 Handle edge case of low ring end 2023-01-16 14:00:53 -08:00
Grant Sanderson
dd0e91015c Account for null family case 2023-01-16 13:56:03 -08:00
Grant Sanderson
1a15756330 Make sure Mobject.become works with bounding_box 2023-01-16 13:55:53 -08:00
Grant Sanderson
8ef93b0f9d Treat font_size as a float 2023-01-16 13:43:48 -08:00
Grant Sanderson
a46e580fa4 Make sure resize_preserving_order preserves data type 2023-01-16 13:37:06 -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