Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids

This commit is contained in:
Grant Sanderson
2024-08-20 08:53:51 -05:00
parent 08e33faab8
commit f12b143d16
4 changed files with 50 additions and 65 deletions

View File

@ -388,7 +388,7 @@ class Scene(object):
"""
batches = batch_by_property(
self.mobjects,
lambda m: str(type(m)) + str(m.get_uniforms())
lambda m: m.get_shader_wrapper(self.camera.ctx).get_id()
)
for group in self.render_groups: