98 Commits

Author SHA1 Message Date
eee4054da8 Cleaup how colors are updated 2020-06-17 17:11:57 -07:00
b16b107f3e Add depth test update when fill and stroke shader info are created 2020-06-17 17:11:31 -07:00
e6f73073fe Remember triangle indices, rather than recomputing each frame 2020-06-15 12:02:24 -07:00
c45fe52a70 Rather than calling get_shader_info a bunch, remember a tempalte 2020-06-15 12:01:54 -07:00
9d772496dd Removes the need to be able to recover shader_info from shader_id 2020-06-14 19:01:04 -07:00
222b6d1220 Push depth test decision to the mobject level, as opposed to the camera 2020-06-14 17:41:47 -07:00
f5b4a86801 Add get_color function 2020-06-13 15:22:11 -07:00
62e5efe87b SGroups should be considered to have resolution (0, 0) 2020-06-10 07:28:06 -07:00
a4d4ae9b47 Don't get rid of null curves each frame, instead do it once for SVG mobjects. 2020-06-09 20:39:32 -07:00
cf8790eefa switched to get_triangle_indices 2020-06-09 20:13:25 -07:00
2208b51f1b Lock triangulation and unit normal by default 2020-06-09 17:59:33 -07:00
3e913b6649 Have make_smooth work directly from the quadratic bezier curves, without going via cubics and doubling the size of the points list 2020-06-09 16:58:16 -07:00
c7a50ac7a5 Tried, but failed, to write a better smooth bezier function 2020-06-09 12:38:37 -07:00
ccefbc0dea Add is_fixed_in_frame uniform which allows mobjects to not get rotated by the camera 2020-06-08 20:27:07 -07:00
be904774dd Treat joint_type as a uniform 2020-06-08 16:03:08 -07:00
bab809b9a6 Allow for passing shader uniforms from mobjects 2020-06-08 15:57:12 -07:00
39230a805c Better handling of textures, now letting multiple get passed in to a textured surface 2020-06-08 15:06:22 -07:00
2d19d76675 Replace all FadeInFrom with simple FadeIn, and likewise for FadeOutFrom -> FadeOut 2020-06-07 12:35:20 -07:00
046caa7632 Bug fixes 2020-06-07 12:24:54 -07:00
ba7a51931d Add shadow, and pull out lighting information to Mobject 2020-06-06 16:55:56 -07:00
b8a1853692 Change meaning of resolution for surfaces to be the number of posts, not fences 2020-06-06 13:22:23 -07:00
d89bf9b635 Added SGroups 2020-06-05 13:37:06 -07:00
83b2932e02 A few more surface types 2020-06-05 13:24:26 -07:00
a3e76334a6 Nix shade_in_3d stuff 2020-06-05 13:22:53 -07:00
b4fb0955a6 Get rid of sheen factor 2020-06-05 13:21:59 -07:00
cacfe67fe1 ParametricSurface replaces the role of SurfaceMobject, and instead of tracking normals infinitesimal nudges are tracked 2020-06-05 11:12:52 -07:00
2b931dc7a2 Improvements to surfaces, with textured surfaces available 2020-06-04 17:17:38 -07:00
4c33b99d39 Very rudimentary 3dSurface type 2020-06-04 15:41:20 -07:00
e4419204cb Got stroke shaders working in 3d 2020-06-04 11:29:36 -07:00
23bbdc63ba Fix up fill shaders to work when being viewed from different orientations, along with several other little bugs 2020-06-03 17:10:33 -07:00
38cc0a7174 Added glossiness to VMobjects 2020-06-02 16:18:44 -07:00
00dcc14df1 Fixed the random-dimples-on-zeros bug while fixing up the fill shaders 2020-05-31 17:02:05 -07:00
593c249bbd Tiny comment 2020-05-30 16:49:27 -07:00
7c0bf2c015 Add args to VMobject.flip 2020-03-27 12:04:16 -07:00
627f122b3f Remove VMobject.set_fill defaulting 2020-03-13 14:05:34 -07:00
f83cfc42b1 Fix set_fill 2020-03-06 06:16:28 -08:00
3cc9bf7052 Bug fix to refresh_triangulation 2020-02-27 17:17:10 +00:00
8485ff8c76 Have vmob.set_opacity default to opacity 1 if it's not specified 2020-02-23 22:59:11 +00:00
11a4d7696e Change implementation of pointwise_become_partial not to change the number of points 2020-02-22 13:19:26 -08:00
2ca0726cd7 Add self.shader_data_is_locked condition to get_shader_info_list 2020-02-21 12:01:17 -08:00
ea59950b2c Have mobjects track family and parents more directly 2020-02-21 10:56:40 -08:00
8d3ec1afd0 Don't worry about aligning points of vmobjects with same number of points 2020-02-20 16:49:36 -08:00
306344e9c1 Add possibility for add_line to add more points...makes for better svg alignment 2020-02-20 15:52:57 -08:00
c88bcc1a3c Get rid of get_point_mobject 2020-02-20 10:03:47 -08:00
c794039b9d Replacing apply_along_axis 2020-02-19 23:43:33 -08:00
e9504b7010 A few small cleanups 2020-02-18 22:31:18 -08:00
9d4b16d03f Moved around where batching mobjects by shader type occurs, while also pulling out some of the shader_id helper functions 2020-02-17 12:14:40 -08:00
6fe68dbc7a Record locked traingulation even on vmobs without points 2020-02-14 17:00:17 -08:00
aa06a3c111 Make it so that changing stroke, when there is background stroke, won't default it back to foreground 2020-02-14 16:27:23 -08:00
9186fa5551 Have vectorized point inherit from point 2020-02-14 15:30:04 -08:00