38 Commits

Author SHA1 Message Date
c8238f6b39 Consolidate lighting uniforms 2023-01-14 07:57:47 -08:00
d19b244ee1 Move uniform pixel_shape declaration outside of get_gl_Position 2023-01-13 22:11:13 -08:00
a004c88e02 Consolidate functions associated with computing gl_Position 2023-01-13 22:07:28 -08:00
fa81d9f6ea Move comment 2023-01-13 21:43:01 -08:00
28d5baeeff Small stylistic tweaks 2023-01-13 21:04:15 -08:00
e534206eb6 Small style change to get_xy_to_uv 2023-01-13 17:37:08 -08:00
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
f3e91db581 Small comment change 2023-01-12 10:39:50 -08:00
131ecce7c4 Add rotate function 2023-01-10 15:16: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
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
02a0ffe04e Delete quadratic_bezier_distance.glsl 2023-01-09 20:17:10 -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
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