3304 Commits

Author SHA1 Message Date
fd1f4313ec Lock shader data during interaction 2020-06-18 16:30:38 -07:00
81f6063736 Change string format style 2020-06-18 16:26:04 -07:00
4fdd655564 changes default Line3D resolution 2020-06-18 16:25:48 -07:00
bb66a7c977 Releases moderngl buffers after use 2020-06-18 16:25:26 -07:00
d4635ab165 Chessbaord scenes up to ShowCube 2020-06-17 17:13:26 -07:00
48801f2892 Don't give arrow tip stroke width by default 2020-06-17 17:13:07 -07:00
0a89a775a2 Clean up some family matters 2020-06-17 17:12:48 -07:00
a0006426cc Fix Line3D 2020-06-17 17:12:23 -07:00
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
138c48c739 Remove old commented out window timing code 2020-06-17 17:10:56 -07:00
5ce8d08e0f Go back to recomputing shader id 2020-06-17 17:10:35 -07:00
d1f1ed6a1a Adds DiagramOfProgression 2020-06-15 12:03:23 -07:00
8c9ea90d50 Remove triangulation lock after animation 2020-06-15 12:02:59 -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
6a458547c3 Bug fix 2020-06-15 12:01:05 -07:00
739667f8a9 Turn on depth test for SurfaceMesh 2020-06-15 12:00:37 -07:00
edec91e1e4 Unfactor internals of batch_by_property for easier readibility, and slight performnace improvement 2020-06-15 12:00:03 -07:00
1e6eef89ec Have shader_info remember its own id 2020-06-15 11:59:24 -07:00
9d772496dd Removes the need to be able to recover shader_info from shader_id 2020-06-14 19:01:04 -07:00
7a152fed1c Some TODO stubs. Honestly, this whole file should probably be deleted 2020-06-14 17:42:59 -07:00
00ad9d7f95 Cleanup to square and rectangle init 2020-06-14 17:42:25 -07:00
222b6d1220 Push depth test decision to the mobject level, as opposed to the camera 2020-06-14 17:41:47 -07:00
145c6a7e78 Remove already commented out alternate pix_fmt 2020-06-13 15:22:44 -07:00
f5b4a86801 Add get_color function 2020-06-13 15:22:11 -07:00
46bcf938ed Stretch to fit should apply to all 3 dimensions 2020-06-13 15:21:47 -07:00
81cedfbfda Cleanup to the __init__ functions on a few geometry objects 2020-06-13 15:21:19 -07:00
61a3bd8102 Small change to make the ctx enable flag a little clearer 2020-06-13 15:20:17 -07:00
9d5282b74f New scene for chessboard video 2020-06-13 15:19:42 -07:00
512c42f4df CoinFlip animation 2020-06-10 07:28:43 -07:00
62e5efe87b SGroups should be considered to have resolution (0, 0) 2020-06-10 07:28:06 -07:00
429d63eebf Add special methods for setting angles 2020-06-09 21:25:00 -07:00
2317a7d982 Torus 2020-06-09 21:24:42 -07:00
8a060dfa3f Add axis_normalized option to quaternion_from_angle_axis 2020-06-09 20:40:36 -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
5584521fb0 Change default focal distance 2020-06-09 17:59:03 -07:00
7c4874bdad Changed how focal_distance works 2020-06-09 17:12:52 -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
1f129f4a23 Clean up parametric function 2020-06-09 16:57:44 -07:00
c7a50ac7a5 Tried, but failed, to write a better smooth bezier function 2020-06-09 12:38:37 -07:00
940432e320 Remove unneeded import 2020-06-09 12:34:57 -07:00
ee7218745e Fixed FunctionGraph bug 2020-06-09 12:34:43 -07:00
b91284b4aa Small shader fixes 2020-06-09 12:34:00 -07:00
f0a36329b1 Changed get_quadratic_approximation_of_cubic 2020-06-08 20:40:39 -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
5d34cee014 Move frame resizing to get_gl_Position so that the screen rotation matrix remains det 1 2020-06-08 17:55:41 -07:00
be904774dd Treat joint_type as a uniform 2020-06-08 16:03:08 -07:00