124 Commits

Author SHA1 Message Date
394d87effb Small style tweaks to quadratic_bezier_fill/geom 2023-01-13 17:26:59 -08:00
69ac946e63 Simpler get_gl_Position 2023-01-13 12:41:09 -08:00
923066db2b Minor style changes to stroke geom shader 2023-01-12 19:54:32 -08:00
de5198196b Fix anti-alias width bug on DotCloud 2023-01-12 19:44:10 -08:00
dcdf74a715 Clean up stroke geometry shader to better function in 3d 2023-01-12 19:24:42 -08:00
a07701e295 Use triangle strip for stroke shader 2023-01-12 15:56:12 -08:00
24afb2a24f Fix angle_between 2023-01-12 14:43:52 -08:00
e676bd957b Do inner joint angle computation in geom shader 2023-01-12 13:08:35 -08:00
f3e91db581 Small comment change 2023-01-12 10:39:50 -08:00
04fd50491e More consistent corners computation for stroke geom shader 2023-01-12 10:14:14 -08:00
c0b3c246de Revert "Revert "Go back to fill shader tracing vertex index manually""
This reverts commit 387de61119ea13b63d68c8e56a776717b99f2a8c.
2023-01-12 00:16:05 -08:00
131e1c2eeb Have corners emitted by stroke geom shader better line up with bezier control points
This is helpful for, say, setting variable stroke width
2023-01-11 21:30:12 -08:00
5a56a2a5ec Remove bad solution to bevel issue 2023-01-11 20:28:00 -08:00
387de61119 Revert "Go back to fill shader tracing vertex index manually"
This reverts commit 7847ff1a9db93316cf7ba4985487f82d2836d840.
2023-01-11 16:22:12 -08:00
7847ff1a9d Go back to fill shader tracing vertex index manually 2023-01-11 15:32:27 -08:00
c4e1db7f9d Don't draw paths where the handle equals the first anchor 2023-01-11 14:18:45 -08:00
2a7b787ef6 Test the orientation in the middle of the curve 2023-01-11 14:18:12 -08:00
e189df81b1 Change default endpoint angle to be 0 2023-01-10 15:32:05 -08:00
0c3367f27b First-pass fix for joints in 3d 2023-01-10 15:17:08 -08:00
131ecce7c4 Add rotate function 2023-01-10 15:16:41 -08:00
7212a98d65 Small clean up 2023-01-10 12:59:10 -08:00
802bd58aa7 Small cleanup 2023-01-10 12:26:16 -08:00
116d6fe244 Revert emit_pentagon to work on 3d vectors 2023-01-10 11:51:05 -08:00
6ec3d9f4a5 Add 'no_joint' to joint types 2023-01-10 11:06:41 -08:00
8cd59f852d Add small comments 2023-01-10 09:55:06 -08:00
8175c2d408 Rename quadratic_bezier_geometry_functions to get_xy_to_uv 2023-01-10 09:53:17 -08:00
b31ad49850 A little clean up to fill shader 2023-01-10 09:49:51 -08:00
70113d5a48 Tiny cleanup 2023-01-10 08:58:08 -08:00
4b652be492 Delete get_xyz_to_uv 2023-01-10 08:57:38 -08:00
05796654f4 Replace "bezier_degree" with "is_linear" 2023-01-10 08:54:02 -08:00
2b90f0b244 Add condition for auto-miter joints 2023-01-09 20:30:49 -08:00
02a0ffe04e Delete quadratic_bezier_distance.glsl 2023-01-09 20:17:10 -08:00
480cc6759f Small cleanup 2023-01-09 19:54:21 -08:00
b4544052d9 Change fill shader to use simpler uv space 2023-01-09 19:54:09 -08:00
f75df1e26e Clean up a few messes from previous commit 2023-01-09 18:51:41 -08:00
c67ae08b62 Have stroke geometry shader pass to a coordinate system where the curve is some segment of y = x^2 2023-01-09 16:46:38 -08:00
d87db65344 Add stand-in for better unit normal treatment 2023-01-09 12:02:50 -08:00
ccf7a503c1 Add ANGLE_THRESHOLD constant 2023-01-09 10:52:12 -08:00
ccbb5534fa Remove find_intersection 2023-01-09 10:52:02 -08:00
5870274adb Delete unused functions 2023-01-09 00:07:46 -05:00
08c02b21aa Small comment 2023-01-09 00:02:30 -05:00
a6e5f25912 Delete get_reduced_control_points 2023-01-09 00:00:31 -05:00
47d0dca087 Check for null curve 2023-01-08 23:58:45 -05:00
16390283cf Small cleanup for fill shader 2023-01-08 23:34:02 -05:00
89d9e260eb Various cleanups for stroke shader 2023-01-08 23:33:39 -05:00
ae2a253fb1 Just pass one bevel parameter rather than two 2023-01-08 21:56:38 -05:00
0136cef1d9 Minor simplifications for stroke shader 2023-01-08 21:53:43 -05:00
d5fdc75164 Remove the need to track previous and next joints in stroke shader 2023-01-08 20:29:31 -05:00
1cf89abf53 No need to track vertex index manually 2023-01-04 16:39:59 -08:00
8fc243e398 Make anti_alias_width a Mobject uniform, rather than a camera attribute 2022-12-28 18:52:05 -08:00