22 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
a6e5f25912 Delete get_reduced_control_points 2023-01-09 00:00:31 -05:00
89d9e260eb Various cleanups for stroke shader 2023-01-08 23:33:39 -05:00
8fc243e398 Make anti_alias_width a Mobject uniform, rather than a camera attribute 2022-12-28 18:52:05 -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
7dc1fe21bd Change angle threshold for determining bezier degree 2022-12-28 09:31:20 -08:00
81c3ae3037 Have separate notions of gloss and reflectiveness 2021-11-08 21:46:09 -08:00
33fa76dfac Add more fractals and decompose slightly 2021-10-11 06:21:47 -07:00
e40a2935b1 Remove redundant relic 2021-08-26 11:42:32 -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
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
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
7b8677fd6c Push all mention of the #INSERT convention to a note in the insert file 2021-01-07 16:16:20 -08:00
065df65cf1 Reorganize how shader files sit in the shaders folder 2021-01-05 23:14:16 -08:00