Commit graph

6212 commits

Author SHA1 Message Date
Grant Sanderson
f12b143d16 Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids 2024-08-20 08:53:51 -05:00
Grant Sanderson
08e33faab8 Ensure scene properly updates on an embed 2024-08-19 21:49:39 -05:00
Grant Sanderson
0b2c59ac6b More explicitly unpack v_base_normal 2024-08-19 21:45:26 -05:00
Grant Sanderson
6223623b40 Ensure border width blends better within filled VMobject for opacity < 1 2024-08-19 21:39:53 -05:00
Grant Sanderson
7217c9fca5 Reorganize VShaderWrapper.render_fill 2024-08-19 20:51:37 -05:00
Grant Sanderson
b288d5301e Get rid of cached _has_stroke and _has_fill parameters 2024-08-19 17:27:47 -05:00
Grant Sanderson
058914fdd2 Mildly more efficient CameraFrame.get_view_matrix() 2024-08-19 16:54:29 -05:00
Grant Sanderson
c064b11e2a Interleave base_point and unit_normal in the same array 2024-08-19 16:50:49 -05:00
Grant Sanderson
b7337f0781 Remove some ShaderWrapper methods which are no longer needed 2024-08-19 14:45:12 -05:00
Grant Sanderson
195264f079 Stop pretending to support non-winding fill in the fill shader.
Possibly, if we want to reintroduce it later on, it should have its own dedicated shader, and maybe a distinct Mobject type too
2024-08-19 14:37:11 -05:00
Grant Sanderson
09d147c8ef Set default border width to 0.5, and keep it for opacities < 1 2024-08-19 14:35:19 -05:00
Grant Sanderson
39bcead679 Clean up 2024-08-19 14:22:10 -05:00
Grant Sanderson
28eba26bee Remove stray new line 2024-08-19 14:09:23 -05:00
Grant Sanderson
3b5d63d2fa Add depth shader to handle winding fill depth test. 2024-08-19 14:09:07 -05:00
Grant Sanderson
4cb16dfc0b Don't apply depth test during winding fill 2024-08-19 11:28:58 -05:00
Grant Sanderson
a12fa0c03d Remove attributes from VMobject which are now handled in VShaderWrapper 2024-08-19 10:04:28 -05:00
Grant Sanderson
4174f314b4 Reorganize, and ensure get_shader_wrapper_list works for general Groups 2024-08-19 09:17:58 -05:00
Grant Sanderson
f2bca0045f Add border width and backstroke 2024-08-19 08:18:45 -05:00
Grant Sanderson
24b160f9f9 Update VMobject shader wrapper
Use a combined VBO
Render with TRIANGLE_STRIP, and ignore every other
2024-08-19 08:05:32 -05:00
Grant Sanderson
f9b9cf69fd Update so that vbo is not recreated on each from, but is read into 2024-08-17 07:11:56 -05:00
Grant Sanderson
0efa96e399 Just use L-inf norm for point equality 2024-08-16 16:18:37 -05:00
Grant Sanderson
12d39ef37c
Merge pull request #2161 from 3b1b/video-work
Adjustments to fill antialiasing
2024-08-16 13:25:40 -07:00
Grant Sanderson
ccc84f4ab1 Give Numbers a default border width 2024-08-16 15:21:29 -05:00
Grant Sanderson
bb42b66201 Include fill border width in style 2024-08-16 15:21:20 -05:00
Grant Sanderson
c20ce8d633 Have arrows default to flat stroke 2024-08-16 15:10:40 -05:00
Grant Sanderson
0267740bde Change STROKE_WIDTH_CONVERSION width back to older value 2024-08-16 15:03:47 -05:00
Grant Sanderson
d8edccdab4 Fix zero stroke width issue 2024-08-16 14:59:18 -05:00
Grant Sanderson
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 2024-08-16 12:38:11 -05:00
Grant Sanderson
21c0bcb8b6 Don't wait for animations while skipping 2024-08-16 12:20:49 -05:00
Grant Sanderson
902a4f264e Add white space after assert statements 2024-08-16 12:15:55 -05:00
Grant Sanderson
3f15715ff1 Use _data_defaults for initializing fill border width 2024-08-16 12:10:37 -05:00
Grant Sanderson
174f318602 Push _data_default initialization into init_data 2024-08-16 12:10:07 -05:00
Grant Sanderson
430a88cf13 Change default border width to 0, and only draw it for opacity 1 2024-08-16 12:05:47 -05:00
Grant Sanderson
4a6e6ca646 Double the size of the fill canvas, to effectively do msaa 2024-08-16 12:04:27 -05:00
Grant Sanderson
e2b0c2b9bf
Merge pull request #2160 from 3b1b/video-work
Fix low resolution thin stroke issue
2024-08-15 15:13:20 -07:00
Grant Sanderson
04347e7876 Fix thin stroke issue for low resolutions 2024-08-15 17:11:02 -05:00
Grant Sanderson
df0ae6fdc9 Fix missing ignore_skipping -> force_draw 2024-08-15 16:40:16 -05:00
Grant Sanderson
59235d3eed Include flat stroke in get_style, set_style, match_style 2024-08-15 15:37:55 -05:00
Grant Sanderson
0fa74a7921
Merge pull request #2159 from 3b1b/video-work
Energy savings
2024-08-15 12:08:51 -07:00
Grant Sanderson
65d5947966 Change ignore_skipping name to force_draw 2024-08-15 14:05:32 -05:00
Grant Sanderson
a5ba721f96 Cease useless rendering
Change so that with a live window, rendering only happens if there has been an event (mouse motion, key press, etc.) to respond to.
2024-08-15 14:03:16 -05:00
Grant Sanderson
c7acbe5de6 Brighten up fill 2024-08-15 10:53:46 -05:00
osMrPigHead
644084d9a7
Merge branch '3b1b:master' into fix-animation-time_span 2024-08-15 15:11:30 +08:00
Grant Sanderson
af8e5236d2
Merge pull request #2157 from 3b1b/video-work
3d stroke bug fix
2024-08-13 16:05:01 -07:00
Grant Sanderson
a4858918dd Small reformatting 2024-08-08 13:59:50 -07:00
Grant Sanderson
31b6affabb Push up pointwise styling update 2024-08-08 13:56:16 -07:00
Grant Sanderson
cff3bdf8d4 Remove unnecessary flat stroke option 2024-08-08 13:55:48 -07:00
Grant Sanderson
9f54b85c4e Change miter threshold to global constant 2024-08-08 13:55:25 -07:00
Grant Sanderson
c345d76de0 Patch for glitches associated with non-flat stroke when tangency direction lines up with camera view 2024-08-08 11:36:28 -05:00
Grant Sanderson
aad2bded14
Merge pull request #2155 from 3b1b/video-work
Update how stroke is rendered
2024-08-07 13:13:17 -07:00