237 Commits

Author SHA1 Message Date
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
39bcead679 Clean up 2024-08-19 14:22:10 -05:00
3b5d63d2fa Add depth shader to handle winding fill depth test. 2024-08-19 14:09:07 -05:00
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
0267740bde Change STROKE_WIDTH_CONVERSION width back to older value 2024-08-16 15:03:47 -05:00
d8edccdab4 Fix zero stroke width issue 2024-08-16 14:59:18 -05:00
04347e7876 Fix thin stroke issue for low resolutions 2024-08-15 17:11:02 -05:00
a4858918dd Small reformatting 2024-08-08 13:59:50 -07:00
31b6affabb Push up pointwise styling update 2024-08-08 13:56:16 -07:00
cff3bdf8d4 Remove unnecessary flat stroke option 2024-08-08 13:55:48 -07:00
9f54b85c4e Change miter threshold to global constant 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 2024-08-08 11:36:28 -05:00
099aaaee43 Increase polyline factor 2024-08-07 14:46:26 -05:00
70862a068f Don't buff out stroke width by antialias width 2024-08-07 14:46:17 -05:00
f677a02036 Allow for manually setting miter or bevel joints 2024-08-07 14:45:55 -05:00
0a43a3ff9a Remove unnecessary stroke vert input 2024-08-07 14:10:50 -05:00
61a2b4d0da Improve flat stroke for sharp corners with a smooth transition to miter joints 2024-08-07 10:34:47 -05:00
edb438e5e2 Further clean up to stroke shader 2024-08-06 15:45:21 -05:00
ec88673e92 Fix kink issue in flat stroke 2024-08-06 10:41:31 -05:00
a5926195ee Clean up stroke shader 2024-08-05 15:01:02 -05:00
557819ad03 Remove pre-computation of curve points and joint products 2024-08-05 14:25:15 -05:00
f363eaa2fd Add stand in for a ribboning effect 2024-08-05 13:37:34 -05:00
c61c18486c Don't bevel corners on inner joints of quadratic bezier curves 2024-08-05 13:37:17 -05:00
26249c34bb Have non-flat stroke operate based on projecting tangents 2024-08-05 09:15:06 -05:00
b3bbc31ea9 Small clean up to stroke shaders 2024-08-03 08:12:00 -05:00
aea747b6d3 Final refinements on polyline stroke implementations 2024-08-01 07:41:32 -05:00
361817b506 Pass fewer values to frag shader 2024-08-01 07:17:26 -05:00
a3469c236e Simpler compute_subdivisions 2024-08-01 06:32:04 -05:00
c6a6503544 Cleaning up first pass implementation 2024-07-31 16:27:37 -04:00
3ea8393e9a First pass at a polyline implementation for stroke 2024-07-31 15:51:06 -04:00
a105216a47 Small clean up 2024-07-31 15:31:26 +02:00
d3dee240c3 Allow for smooth transitions between mobjects fixed and unfixed from the frame 2024-01-19 17:42:12 -06:00
60b762ca43 Remove redundant and unused get_gl_Position.glsl file 2024-01-19 17:41:46 -06:00
3f2d15986a Make TrueDot shading in 3d work 2023-02-16 16:47:59 -08:00
acb4b1c6b3 Finalize color at the vertex level, rather than the fragment level, for fill 2023-02-02 12:04:23 -08:00
17cef427f1 Update fill shader alpha blending, and simplify the fill canvas 2023-02-02 10:42:24 -08:00
7c087838a3 Change backstroke defaults in OpeningScene 2023-01-31 21:33:36 -08:00
2cbad30f45 Change VMobject rendering mode to TRIANGLES
And set indices appropriately when reading in to the ShaderWrapper
2023-01-31 11:45:53 -08:00
e7734ca84c Fix TexturedSurface 2023-01-30 20:57:21 -08:00
55da5d5d03 Remove use of dv_points and du_points, pass unit normals to shader instead 2023-01-30 20:49:32 -08:00
e950286fa4 Replace get_gl_Position -> emit_gl_Position 2023-01-30 18:43:28 -08:00
daaaba0a67 Use frame_scale uniform instead of frame_shape 2023-01-30 15:10:41 -08:00
277c471c90 Refactor so that view matrix incorporates frame scaling 2023-01-30 14:15:39 -08:00
0d36f17f9c Remove unused line 2023-01-28 15:40:10 -08:00
368f48f8dd Make use of some glsl built-ins 2023-01-28 15:01:32 -08:00
e57ca4e1ee Track orientation for non-winding fill 2023-01-27 12:43:21 -08:00
86fb69c5bb Track unit normal for fill 2023-01-27 12:35:43 -08:00
1c432dd6dc Small refactor to stroke geom shader 2023-01-27 10:48:06 -08:00
1707958e0f Clean up fill shader a bit 2023-01-27 08:26:54 -08:00
79039bde61 Fix Arrow 2023-01-26 23:42:03 -08:00