Commit Graph

  • b3386ad7a7 Add an option for VMobject.add_line to add a null line Grant Sanderson 2024-08-21 14:29:40 -05:00
  • c83d03aeb7 Simplify get_subpath_end_indices_from_points Grant Sanderson 2024-08-21 14:29:16 -05:00
  • 0a89725090 Tweaking what triggers refreshes Grant Sanderson 2024-08-21 13:57:54 -05:00
  • 0cb7a8f691 Only recompute subpath_end_indices as needed Grant Sanderson 2024-08-21 13:44:24 -05:00
  • 43f1704f69 Fix computation of joint_angles to handle zero division case Grant Sanderson 2024-08-21 13:44:00 -05:00
  • 941513d68c Only recompute VMobject.get_unit_normal as needed Grant Sanderson 2024-08-21 12:26:42 -05:00
  • 9a5386b022 Instead of passing in joint_products to stroke shader, just track joint_angles and pass in global unit normal Grant Sanderson 2024-08-21 11:59:48 -05:00
  • 67bedc6d1f Fix fill_depth_vert_format Grant Sanderson 2024-08-21 09:14:23 -05:00
  • 79ec791fc2 Move get_fill_canvas into VShaderWrapper Grant Sanderson 2024-08-21 09:02:22 -05:00
  • 748780378b Have stroke_behind default to True for VMobjects with fill and no stroke Grant Sanderson 2024-08-21 08:43:57 -05:00
  • dfc5f152dd Have border width pre-multiply by alpha, and don't use a separate texture for that border width Grant Sanderson 2024-08-20 22:03:45 -05:00
  • d0cb5b4eea Fix normal orientation on Surface Grant Sanderson 2024-08-20 14:47:47 -05:00
  • 35ce4c6704 Use Mobject.set_uniform in Mobject.set_shading Grant Sanderson 2024-08-20 14:44:48 -05:00
  • 7ddbd13e38 Ensure mobject uniforms get passed to ShaderWrapper on init Grant Sanderson 2024-08-20 14:44:09 -05:00
  • 304856e6e0 Remove indices_list argument on ShaderWrapper.read_in Grant Sanderson 2024-08-20 14:21:37 -05:00
  • 82582d08bd Fewer parameters for stroke frag shader Grant Sanderson 2024-08-20 13:32:52 -05:00
  • a8784692e8 Reference new shader file structure Grant Sanderson 2024-08-20 12:58:53 -05:00
  • 0a313eb119 Reorganize quadratic bezier shader files Grant Sanderson 2024-08-20 12:58:34 -05:00
  • 5eb5a11499 Don't have absolute stroke width change with frame size (at least temporarily) Grant Sanderson 2024-08-20 12:36:28 -05:00
  • 0a585b123c Use stash_mobject_pointers on Mobject.deepcopy Grant Sanderson 2024-08-20 12:15:37 -05:00
  • 910f28f52e Don't have a default flat stroke in set_style Grant Sanderson 2024-08-20 12:13:18 -05:00
  • 7474ae17b0 Change default to flat stroke, except in 3d situations Grant Sanderson 2024-08-20 11:52:05 -05:00
  • b8931e7b9c When shader_id is updated, have ancestors mark data as changed Grant Sanderson 2024-08-20 11:36:37 -05:00
  • 0414f8786c Use Mobject.set_uniform to reassign flat_stroke Grant Sanderson 2024-08-20 11:35:42 -05:00
  • e0191d81d9 Instead of tracking _shaders_initialized, just check if self.shader_wrapper is None Grant Sanderson 2024-08-20 10:48:43 -05:00
  • 0ac9ee1fbf Don't deepcopy ShaderWrapper Grant Sanderson 2024-08-20 10:15:53 -05:00
  • b9645ad196 Only update shader wrapper when stroke_behind genuinely changes Grant Sanderson 2024-08-20 10:00:52 -05:00
  • 87ca6e56aa Don't treat font size as a uniform Grant Sanderson 2024-08-20 10:00:07 -05:00
  • e61957a4e0 Fix wrong check for path_func in last commit Grant Sanderson 2024-08-20 09:25:30 -05:00
  • a8ef9629eb More direct lerp in Mobject.interpolate Grant Sanderson 2024-08-20 09:10:33 -05:00
  • e796a0c6d6 Remove stray TODO Grant Sanderson 2024-08-20 09:10:14 -05:00
  • 5ff80ffc6c Fix matplotlib color map import Grant Sanderson 2024-08-20 08:54:06 -05:00
  • f12b143d16 Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids Grant Sanderson 2024-08-20 08:53:51 -05:00
  • 08e33faab8 Ensure scene properly updates on an embed Grant Sanderson 2024-08-19 21:49:39 -05:00
  • 0b2c59ac6b More explicitly unpack v_base_normal Grant Sanderson 2024-08-19 21:45:26 -05:00
  • 6223623b40 Ensure border width blends better within filled VMobject for opacity < 1 Grant Sanderson 2024-08-19 21:39:53 -05:00
  • 7217c9fca5 Reorganize VShaderWrapper.render_fill Grant Sanderson 2024-08-19 20:51:37 -05:00
  • b288d5301e Get rid of cached _has_stroke and _has_fill parameters Grant Sanderson 2024-08-19 17:27:47 -05:00
  • 058914fdd2 Mildly more efficient CameraFrame.get_view_matrix() Grant Sanderson 2024-08-19 16:54:29 -05:00
  • c064b11e2a Interleave base_point and unit_normal in the same array Grant Sanderson 2024-08-19 16:50:49 -05:00
  • b7337f0781 Remove some ShaderWrapper methods which are no longer needed Grant Sanderson 2024-08-19 14:45:12 -05:00
  • 195264f079 Stop pretending to support non-winding fill in the fill shader. Grant Sanderson 2024-08-19 14:37:11 -05:00
  • 09d147c8ef Set default border width to 0.5, and keep it for opacities < 1 Grant Sanderson 2024-08-19 14:35:19 -05:00
  • 39bcead679 Clean up Grant Sanderson 2024-08-19 14:22:10 -05:00
  • 28eba26bee Remove stray new line Grant Sanderson 2024-08-19 14:09:23 -05:00
  • 3b5d63d2fa Add depth shader to handle winding fill depth test. Grant Sanderson 2024-08-19 14:09:07 -05:00
  • 4cb16dfc0b Don't apply depth test during winding fill Grant Sanderson 2024-08-19 11:28:58 -05:00
  • a12fa0c03d Remove attributes from VMobject which are now handled in VShaderWrapper Grant Sanderson 2024-08-19 10:04:28 -05:00
  • 4174f314b4 Reorganize, and ensure get_shader_wrapper_list works for general Groups Grant Sanderson 2024-08-19 09:17:58 -05:00
  • f2bca0045f Add border width and backstroke Grant Sanderson 2024-08-19 08:18:45 -05:00
  • 24b160f9f9 Update VMobject shader wrapper Grant Sanderson 2024-08-19 08:05:32 -05:00
  • f9b9cf69fd Update so that vbo is not recreated on each from, but is read into Grant Sanderson 2024-08-17 07:11:56 -05:00
  • 0efa96e399 Just use L-inf norm for point equality Grant Sanderson 2024-08-16 16:18:37 -05:00
  • 12d39ef37c Merge pull request #2161 from 3b1b/video-work Grant Sanderson 2024-08-16 13:25:40 -07:00
  • ccc84f4ab1 Give Numbers a default border width #2161 Grant Sanderson 2024-08-16 15:21:29 -05:00
  • bb42b66201 Include fill border width in style Grant Sanderson 2024-08-16 15:21:20 -05:00
  • c20ce8d633 Have arrows default to flat stroke Grant Sanderson 2024-08-16 15:10:40 -05:00
  • 0267740bde Change STROKE_WIDTH_CONVERSION width back to older value Grant Sanderson 2024-08-16 15:03:47 -05:00
  • d8edccdab4 Fix zero stroke width issue Grant Sanderson 2024-08-16 14:59:18 -05:00
  • 108db87087 Rather than ignoring border with for non-one opacity, go back to having set_fill default to setting 0 border width for intermediate opacities Grant Sanderson 2024-08-16 12:38:11 -05:00
  • 21c0bcb8b6 Don't wait for animations while skipping Grant Sanderson 2024-08-16 12:20:49 -05:00
  • 902a4f264e Add white space after assert statements Grant Sanderson 2024-08-16 12:15:55 -05:00
  • 3f15715ff1 Use _data_defaults for initializing fill border width Grant Sanderson 2024-08-16 12:10:37 -05:00
  • 174f318602 Push _data_default initialization into init_data Grant Sanderson 2024-08-16 12:10:07 -05:00
  • 430a88cf13 Change default border width to 0, and only draw it for opacity 1 Grant Sanderson 2024-08-16 12:05:47 -05:00
  • 4a6e6ca646 Double the size of the fill canvas, to effectively do msaa Grant Sanderson 2024-08-16 12:04:27 -05:00
  • e2b0c2b9bf Merge pull request #2160 from 3b1b/video-work Grant Sanderson 2024-08-15 15:13:20 -07:00
  • 04347e7876 Fix thin stroke issue for low resolutions #2160 Grant Sanderson 2024-08-15 17:11:02 -05:00
  • df0ae6fdc9 Fix missing ignore_skipping -> force_draw Grant Sanderson 2024-08-15 16:40:16 -05:00
  • 59235d3eed Include flat stroke in get_style, set_style, match_style Grant Sanderson 2024-08-15 15:37:55 -05:00
  • 0fa74a7921 Merge pull request #2159 from 3b1b/video-work Grant Sanderson 2024-08-15 12:08:51 -07:00
  • 65d5947966 Change ignore_skipping name to force_draw #2159 Grant Sanderson 2024-08-15 14:05:32 -05:00
  • a5ba721f96 Cease useless rendering Grant Sanderson 2024-08-15 14:03:16 -05:00
  • c7acbe5de6 Brighten up fill Grant Sanderson 2024-08-15 10:53:46 -05:00
  • 644084d9a7 Merge branch '3b1b:master' into fix-animation-time_span #2147 osMrPigHead 2024-08-15 15:11:30 +08:00
  • af8e5236d2 Merge pull request #2157 from 3b1b/video-work Grant Sanderson 2024-08-13 16:05:01 -07:00
  • a4858918dd Small reformatting #2157 Grant Sanderson 2024-08-08 13:59:50 -07:00
  • 31b6affabb Push up pointwise styling update Grant Sanderson 2024-08-08 13:56:16 -07:00
  • cff3bdf8d4 Remove unnecessary flat stroke option Grant Sanderson 2024-08-08 13:55:48 -07:00
  • 9f54b85c4e Change miter threshold to global constant Grant Sanderson 2024-08-08 13:55:25 -07:00
  • c345d76de0 Patch for glitches associated with non-flat stroke when tangency direction lines up with camera view Grant Sanderson 2024-08-08 11:36:28 -05:00
  • aad2bded14 Merge pull request #2155 from 3b1b/video-work Grant Sanderson 2024-08-07 13:13:17 -07:00
  • 1ff758dea8 Remove (no longer necessary) specifications of non-flat stroke for 3d things #2155 Grant Sanderson 2024-08-07 15:06:10 -05:00
  • bf43a648a4 Allow for setting flat stroke in VMobject.set_stroke Grant Sanderson 2024-08-07 14:54:37 -05:00
  • 099aaaee43 Increase polyline factor Grant Sanderson 2024-08-07 14:46:26 -05:00
  • 70862a068f Don't buff out stroke width by antialias width Grant Sanderson 2024-08-07 14:46:17 -05:00
  • f677a02036 Allow for manually setting miter or bevel joints Grant Sanderson 2024-08-07 14:45:55 -05:00
  • bc91e91634 In get_euler_angles, add edge case for gimbal lock on the low side Grant Sanderson 2024-08-07 14:11:10 -05:00
  • 0a43a3ff9a Remove unnecessary stroke vert input Grant Sanderson 2024-08-07 14:10:50 -05:00
  • e130625b9b Handle edge case of single point passed into approx_smooth_quadratic_bezier_handles Grant Sanderson 2024-08-07 12:12:29 -05:00
  • 0dcf630222 Change default to non-flat stroke rendering Grant Sanderson 2024-08-07 11:23:37 -05:00
  • 61a2b4d0da Improve flat stroke for sharp corners with a smooth transition to miter joints Grant Sanderson 2024-08-07 10:34:47 -05:00
  • edb438e5e2 Further clean up to stroke shader Grant Sanderson 2024-08-06 15:45:21 -05:00
  • ec88673e92 Fix kink issue in flat stroke Grant Sanderson 2024-08-06 10:41:31 -05:00
  • 44ec9933b7 Small format fix Grant Sanderson 2024-08-06 10:39:23 -05:00
  • 4ff61ed561 Default approximate smoothing (non-approx has a bug in 3d) Grant Sanderson 2024-08-06 10:27:35 -05:00
  • 4223bb6320 Small cleanup on TracedPath Grant Sanderson 2024-08-06 10:23:46 -05:00
  • b45c71d3c2 Account for Gimbal lock in panning Grant Sanderson 2024-08-05 16:58:03 -05:00
  • 2b6ec2d95f Add spacing on assert lines Grant Sanderson 2024-08-05 15:01:20 -05:00
  • a5926195ee Clean up stroke shader Grant Sanderson 2024-08-05 15:01:02 -05:00