mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 13:01:00 +00:00
Small note
This commit is contained in:
parent
4a3e4df2bd
commit
4968c7a8a1
1 changed files with 3 additions and 5 deletions
|
@ -293,13 +293,11 @@ class Camera(object):
|
|||
for mob in mobjects
|
||||
])
|
||||
batches = batch_by_property(shader_infos, shader_info_to_id)
|
||||
# TODO, if apply_depth_test, don't worry about order.
|
||||
# Maybe rewrite batch_by_property to have a "preserve_order" argument
|
||||
|
||||
for info_group, sid in batches:
|
||||
if len(info_group) == 1:
|
||||
data = info_group[0]["data"]
|
||||
else:
|
||||
data = np.hstack([info["data"] for info in info_group])
|
||||
|
||||
data = np.hstack([info["data"] for info in info_group])
|
||||
shader = self.get_shader(info_group[0])
|
||||
render_primative = int(info_group[0]["render_primative"])
|
||||
self.render(shader, data, render_primative)
|
||||
|
|
Loading…
Add table
Reference in a new issue