89 Commits

Author SHA1 Message Date
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
1180932026 Fix antialiasing issue with straight lines in text 2022-12-28 16:37:44 -08:00
44dc22e5e4 Rename local_unit_normal to unit_normal 2022-12-28 11:17:55 -08:00
4d65ceabf7 Include zero in orientation checks 2022-12-28 11:17:45 -08:00
b96a65d576 Tweaks to quadratic_bezier_geometry_functions 2022-12-28 11:16:53 -08:00
c8c96fe645 Tweaks to get_unit_normal 2022-12-28 11:16:24 -08:00
083de38e4c Remove "arbitrary-seeming branching" 2022-12-28 10:05:44 -08:00
7dc1fe21bd Change angle threshold for determining bezier degree 2022-12-28 09:31:20 -08:00
795f6e2490 Remove unit_normal attribute 2022-12-27 19:12:00 -08:00
40bf1fd6a9 Stop tracking unit_normal in data
Track orientation of each curve instead
2022-12-23 10:08:23 -07:00
de7d9ce8c9 Don't let stroke width vary with zoom levels 2022-07-19 12:38:45 -07:00
81c3ae3037 Have separate notions of gloss and reflectiveness 2021-11-08 21:46:09 -08:00
185782a2e7 Remove stray brace 2021-11-01 13:05:13 -07:00
8b454fbe93 Slight tweaks to how saturation_factor works on newton-fractal 2021-10-18 07:12:05 -07:00
14fbed76da Consolidate and rename newton_fractal shader 2021-10-15 12:00:29 -07:00
33fa76dfac Add more fractals and decompose slightly 2021-10-11 06:21:47 -07:00
3822b00bec Change how Julia set highlight works 2021-10-05 14:16:50 -07:00
e9b404406d Updates to poly_fractal shaders 2021-10-01 12:34:06 -07:00
0d2d1b5c03 Add MAX_DEGREE to poly_fractal 2021-08-28 06:21:32 -07:00
e40a2935b1 Remove redundant relic 2021-08-26 11:42:32 -07:00
f84b8a66fe poly_fractal shader 2021-08-26 11:40:55 -07:00
b4b4d39ec5 Fixes issues #1436 2021-06-14 09:55:40 -07:00
442e7fc14d Use focal_distance as camera_distance in shaders. 2021-06-05 17:43:32 +08:00
bb27a78449 fix: checking whether normal is facing the camera. 2021-06-05 17:33:54 +08:00
9a79043640 Change threshold for treating quadratic bezier curves as lines 2021-02-07 17:29:45 -08:00
46294a5fad Fix aliasing issue on filled VMobject by calling get_unit_normal on reduced control points 2021-02-03 13:41:02 -08:00
5a16e3a358 Converted 0 to 0.0 in sdf() and angle_between_vectors() 2021-02-03 17:22:28 +05:45
59af903f14 Reorganize the interaction between CameraFrame and shader perspective transforms, along with some keyboard interactions for panning 2021-01-18 16:39:29 -08:00
8d14b66583 Fix previous commit 2021-01-10 08:38:47 -08:00
92b0953081 Move around where colormap code lives 2021-01-10 08:35:06 -08:00
e98ebfe9e1 Rename add_light -> finalize_color and leave room for other color manipulations 2021-01-09 22:11:38 -08:00
fdcc8d4257 Add ability to manipulate a mobjects shader code from python, and in particular to give it a coloring function, e.g. with Mobject.set_color_by_xyz_func 2021-01-09 18:52:54 -08:00
677d609870 Tiny chantges 2021-01-09 10:30:42 -08:00
a429a146c7 Fix how stroke is scaled for perspective 2021-01-09 10:30:11 -08:00
ac4755459a Clamp perspective_scale_factor 2021-01-09 10:29:45 -08:00
632c35daef Fix bugs in stroke shader for 3d scenes 2021-01-08 22:28:34 -08:00