Commit graph

28 commits

Author SHA1 Message Date
Grant Sanderson
8cd59f852d Add small comments 2023-01-10 09:55:06 -08:00
Grant Sanderson
8175c2d408 Rename quadratic_bezier_geometry_functions to get_xy_to_uv 2023-01-10 09:53:17 -08:00
Grant Sanderson
4b652be492 Delete get_xyz_to_uv 2023-01-10 08:57:38 -08:00
Grant Sanderson
05796654f4 Replace "bezier_degree" with "is_linear" 2023-01-10 08:54:02 -08:00
Grant Sanderson
02a0ffe04e Delete quadratic_bezier_distance.glsl 2023-01-09 20:17:10 -08:00
Grant Sanderson
f75df1e26e Clean up a few messes from previous commit 2023-01-09 18:51:41 -08:00
Grant Sanderson
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
Grant Sanderson
a6e5f25912 Delete get_reduced_control_points 2023-01-09 00:00:31 -05:00
Grant Sanderson
89d9e260eb Various cleanups for stroke shader 2023-01-08 23:33:39 -05:00
Grant Sanderson
8fc243e398 Make anti_alias_width a Mobject uniform, rather than a camera attribute 2022-12-28 18:52:05 -08:00
Grant Sanderson
b96a65d576 Tweaks to quadratic_bezier_geometry_functions 2022-12-28 11:16:53 -08:00
Grant Sanderson
c8c96fe645 Tweaks to get_unit_normal 2022-12-28 11:16:24 -08:00
Grant Sanderson
7dc1fe21bd Change angle threshold for determining bezier degree 2022-12-28 09:31:20 -08:00
Grant Sanderson
81c3ae3037 Have separate notions of gloss and reflectiveness 2021-11-08 21:46:09 -08:00
Grant Sanderson
33fa76dfac Add more fractals and decompose slightly 2021-10-11 06:21:47 -07:00
Grant Sanderson
e40a2935b1 Remove redundant relic 2021-08-26 11:42:32 -07:00
Wallbreaker5th
442e7fc14d Use focal_distance as camera_distance in shaders. 2021-06-05 17:43:32 +08:00
Wallbreaker5th
bb27a78449 fix: checking whether normal is facing the camera. 2021-06-05 17:33:54 +08:00
Grant Sanderson
9a79043640 Change threshold for treating quadratic bezier curves as lines 2021-02-07 17:29:45 -08:00
Grant Sanderson
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
Grant Sanderson
8d14b66583 Fix previous commit 2021-01-10 08:38:47 -08:00
Grant Sanderson
92b0953081 Move around where colormap code lives 2021-01-10 08:35:06 -08:00
Grant Sanderson
e98ebfe9e1 Rename add_light -> finalize_color and leave room for other color manipulations 2021-01-09 22:11:38 -08:00
Grant Sanderson
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
Grant Sanderson
ac4755459a Clamp perspective_scale_factor 2021-01-09 10:29:45 -08:00
Grant Sanderson
632c35daef Fix bugs in stroke shader for 3d scenes 2021-01-08 22:28:34 -08:00
Grant Sanderson
7b8677fd6c Push all mention of the #INSERT convention to a note in the insert file 2021-01-07 16:16:20 -08:00
Grant Sanderson
065df65cf1 Reorganize how shader files sit in the shaders folder 2021-01-05 23:14:16 -08:00