Commit graph

298 commits

Author SHA1 Message Date
Grant Sanderson
ebf2ee5849 Update tex patterns 2023-02-01 20:12:06 -08:00
Grant Sanderson
b1fb3e1d54 Add render mode and early discard for fill canvas vao 2023-02-01 11:19:22 -08:00
Grant Sanderson
d9c85aac46 Add dict_eq 2023-01-31 15:37:30 -08:00
Grant Sanderson
474a6c27e3 Counteract alpha scaling from fill frag 2023-01-28 15:00:15 -08:00
Grant Sanderson
144e512952 Use active camera config, not default 2023-01-28 12:19:49 -08:00
Grant Sanderson
60a27f52f1 Add depth sampling for fill 2023-01-28 10:36:41 -08:00
Grant Sanderson
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
Grant Sanderson
97e4c25453 Add comment 2023-01-27 08:29:41 -08:00
Grant Sanderson
1707958e0f Clean up fill shader a bit 2023-01-27 08:26:54 -08:00
Grant Sanderson
de7545e5fa Tiny tweak to array_is_constant 2023-01-26 23:43:34 -08:00
Grant Sanderson
8f6c14ad5f Increase threshold for discarding fill fragments 2023-01-26 22:41:23 -08:00
Grant Sanderson
5803a00598 Use smaller fill_texture, adjusting winding-fill blending hack as is necessary 2023-01-26 20:14:22 -08:00
Grant Sanderson
37f0bf8c11 Fix winding fill blending
(Using somewhat of a hack)
2023-01-26 15:27:48 -08:00
Grant Sanderson
3f5df432ce Consider winding_fill alphas pre-multiplied 2023-01-26 12:17:21 -08:00
Grant Sanderson
a68bc1271b Have FillShaders all share the same texture used for intermediary rendering 2023-01-25 19:43:16 -08:00
Grant Sanderson
c94d8fd3b0 Move Texture handling and vao creation outside of Camera 2023-01-25 12:10:39 -08:00
Grant Sanderson
3299741359 Move program code to ShaderWrapper, away from Camera 2023-01-25 11:23:31 -08:00
Grant Sanderson
1eae7c06ba Add conditions for resize_with_interpolation 2023-01-19 09:56:40 -08:00
Grant Sanderson
22d2819ecf Improvements to make_smooth 2023-01-18 22:39:02 -08:00
Grant Sanderson
3820e098c0 Tweak to type hints 2023-01-18 16:25:32 -08:00
Grant Sanderson
4de0d098ea Allow cross to take an 'out' array 2023-01-17 11:35:50 -08:00
Grant Sanderson
f15ac81131 Pull out helper functions from shader_wrapper.py 2023-01-16 14:18:35 -08:00
Grant Sanderson
bd2d45ebc6 Handle edge case of low ring end 2023-01-16 14:00:53 -08:00
Grant Sanderson
a46e580fa4 Make sure resize_preserving_order preserves data type 2023-01-16 13:37:06 -08:00
Grant Sanderson
db45d9e646 Add array_is_constant 2023-01-16 13:26:44 -08:00
Grant Sanderson
51efe0d18e Merge branch 'master' of github.com:3b1b/manim into video-work 2023-01-13 20:42:03 -08:00
Grant Sanderson
42909a94ac No need for np.repeat in normalize_along_axis 2023-01-13 20:34:18 -08:00
Grant Sanderson
31cc2671e5 Have line_intersects_path not assume closed path 2023-01-13 16:35:18 -08:00
Grant Sanderson
937b894826 Clean up find_intersection 2023-01-13 16:35:01 -08:00
Grant Sanderson
d2800b6c96 Make sure cross behaves as expected on 2d arrays 2023-01-13 00:05:29 -08:00
Grant Sanderson
de4a56849e Add line_intersects_path 2023-01-12 21:04:46 -08:00
LucaCappelletti94
1708fbd672 Updated tqdm to support also notebooks 2023-01-12 12:03:14 +01:00
Grant Sanderson
1a8e923ef2 Small speed ups 2023-01-12 00:40:27 -08:00
Grant Sanderson
21908a48de Change behavior of get_quadratic_approximation_of_cubic to return quintuplets instead of sextuplets 2023-01-11 14:19:33 -08:00
Grant Sanderson
40b9e22b6e Update some type hints in bezier 2023-01-11 14:19:17 -08:00
Grant Sanderson
27db1c5987 Add arrays_match function 2023-01-10 10:25:59 -08:00
Grant Sanderson
9e7cd1399d Add arr_clip (faster alternative to np.clip) 2023-01-08 21:27:56 -05:00
Grant Sanderson
c30b102458 Use re.sub instead of looping over re.findall 2023-01-04 16:39:59 -08:00
Grant Sanderson
7df12c68dc Tiny cleanup 2022-12-29 18:52:13 -08:00
Grant Sanderson
04d3e6a47c Interpolate colors using square of rgbs 2022-12-29 16:07:28 -08:00
Grant Sanderson
1feae23566 Improve num_tex_symbols 2022-12-29 10:37:46 -08:00
Grant Sanderson
596aea3bf5 Update to bezier 2022-12-28 21:06:36 -08:00
Grant Sanderson
34d8ab81f9 Fix for num_tex_symbols 2022-12-28 13:38:15 -08:00
Grant Sanderson
f2859a9a8c Give default curve orientation of 1 2022-12-27 15:53:24 -08:00
Grant Sanderson
22c67df2ad Simplify Scene.remove to not require a Mobject.get_ancestors call 2022-12-26 07:46:40 -07:00
Grant Sanderson
3878b8c077 Fix rotation_between_vectors 2022-12-23 10:04:27 -07:00
Grant Sanderson
baf2690d77 In rotation_between_vectors, account for the case where vectors align 2022-12-22 17:57:47 -07:00
Grant Sanderson
fca7c0609a Factor out epsilon in earclip_triangulation 2022-12-22 11:53:14 -07:00
Grant Sanderson
a4d47f64b0 Fix normalize_along_axis 2022-12-22 11:52:55 -07:00
Grant Sanderson
805236337e Remove stray import 2022-12-21 12:52:32 -08:00