Commit graph

830 commits

Author SHA1 Message Date
Grant Sanderson
60e1c88eb4 Slight tweaks to how shader_info id is found and stored 2020-06-26 23:05:25 -07:00
Grant Sanderson
661b81ab17 By default, don't recursively check for updaters unless there's something to find 2020-06-26 22:16:04 -07:00
Grant Sanderson
4910501ee0 Clean up end scroll 2020-06-26 21:53:39 -07:00
Grant Sanderson
9a2b2ecd9e Small repositioning 2020-06-26 21:53:26 -07:00
Grant Sanderson
9d03f40be2 Keep tex mobject from calling itself twice 2020-06-26 21:53:06 -07:00
Grant Sanderson
9795beba89 Removes locked_shader_data notion 2020-06-26 21:52:50 -07:00
Grant Sanderson
212cdbb4d2 Speed improvements. Camera saves vbo for static mobjects, data in shader_data_info is saved and concatenated in raw form 2020-06-26 19:29:34 -07:00
Grant Sanderson
a05621e857 Changes to end scroll 2020-06-26 15:35:50 -07:00
Grant Sanderson
c2feb6fff1 Add shorted method for setting background stroke 2020-06-26 15:35:37 -07:00
Grant Sanderson
21bf3c3e3a VMobject was not correctly incorporating background stroke on init 2020-06-26 15:31:24 -07:00
Grant Sanderson
5b1ce542d7 Update ending scroll 2020-06-23 14:26:13 -07:00
Grant Sanderson
1f6308577b Only remove null curves for tex mobjects 2020-06-23 14:26:02 -07:00
Grant Sanderson
c653610215 Add Checkmark and Exmark 2020-06-22 15:22:29 -07:00
Grant Sanderson
09df42a755 Acutually uses Arrow.preserve_tip_size_when_scaling 2020-06-22 15:22:05 -07:00
Grant Sanderson
687d70e9b6 Changes default int_func on ShowIncreasingSubsets to np.round 2020-06-22 15:21:25 -07:00
Grant Sanderson
fd1f4313ec Lock shader data during interaction 2020-06-18 16:30:38 -07:00
Grant Sanderson
81f6063736 Change string format style 2020-06-18 16:26:04 -07:00
Grant Sanderson
4fdd655564 changes default Line3D resolution 2020-06-18 16:25:48 -07:00
Grant Sanderson
bb66a7c977 Releases moderngl buffers after use 2020-06-18 16:25:26 -07:00
Grant Sanderson
48801f2892 Don't give arrow tip stroke width by default 2020-06-17 17:13:07 -07:00
Grant Sanderson
0a89a775a2 Clean up some family matters 2020-06-17 17:12:48 -07:00
Grant Sanderson
a0006426cc Fix Line3D 2020-06-17 17:12:23 -07:00
Grant Sanderson
eee4054da8 Cleaup how colors are updated 2020-06-17 17:11:57 -07:00
Grant Sanderson
b16b107f3e Add depth test update when fill and stroke shader info are created 2020-06-17 17:11:31 -07:00
Grant Sanderson
138c48c739 Remove old commented out window timing code 2020-06-17 17:10:56 -07:00
Grant Sanderson
5ce8d08e0f Go back to recomputing shader id 2020-06-17 17:10:35 -07:00
Grant Sanderson
8c9ea90d50 Remove triangulation lock after animation 2020-06-15 12:02:59 -07:00
Grant Sanderson
e6f73073fe Remember triangle indices, rather than recomputing each frame 2020-06-15 12:02:24 -07:00
Grant Sanderson
c45fe52a70 Rather than calling get_shader_info a bunch, remember a tempalte 2020-06-15 12:01:54 -07:00
Grant Sanderson
6a458547c3 Bug fix 2020-06-15 12:01:05 -07:00
Grant Sanderson
739667f8a9 Turn on depth test for SurfaceMesh 2020-06-15 12:00:37 -07:00
Grant Sanderson
edec91e1e4 Unfactor internals of batch_by_property for easier readibility, and slight performnace improvement 2020-06-15 12:00:03 -07:00
Grant Sanderson
1e6eef89ec Have shader_info remember its own id 2020-06-15 11:59:24 -07:00
Grant Sanderson
9d772496dd Removes the need to be able to recover shader_info from shader_id 2020-06-14 19:01:04 -07:00
Grant Sanderson
7a152fed1c Some TODO stubs. Honestly, this whole file should probably be deleted 2020-06-14 17:42:59 -07:00
Grant Sanderson
00ad9d7f95 Cleanup to square and rectangle init 2020-06-14 17:42:25 -07:00
Grant Sanderson
222b6d1220 Push depth test decision to the mobject level, as opposed to the camera 2020-06-14 17:41:47 -07:00
Grant Sanderson
145c6a7e78 Remove already commented out alternate pix_fmt 2020-06-13 15:22:44 -07:00
Grant Sanderson
f5b4a86801 Add get_color function 2020-06-13 15:22:11 -07:00
Grant Sanderson
46bcf938ed Stretch to fit should apply to all 3 dimensions 2020-06-13 15:21:47 -07:00
Grant Sanderson
81cedfbfda Cleanup to the __init__ functions on a few geometry objects 2020-06-13 15:21:19 -07:00
Grant Sanderson
61a3bd8102 Small change to make the ctx enable flag a little clearer 2020-06-13 15:20:17 -07:00
Grant Sanderson
62e5efe87b SGroups should be considered to have resolution (0, 0) 2020-06-10 07:28:06 -07:00
Grant Sanderson
429d63eebf Add special methods for setting angles 2020-06-09 21:25:00 -07:00
Grant Sanderson
2317a7d982 Torus 2020-06-09 21:24:42 -07:00
Grant Sanderson
8a060dfa3f Add axis_normalized option to quaternion_from_angle_axis 2020-06-09 20:40:36 -07:00
Grant Sanderson
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
Grant Sanderson
cf8790eefa switched to get_triangle_indices 2020-06-09 20:13:25 -07:00
Grant Sanderson
2208b51f1b Lock triangulation and unit normal by default 2020-06-09 17:59:33 -07:00
Grant Sanderson
5584521fb0 Change default focal distance 2020-06-09 17:59:03 -07:00