Move most of rendering logic to ShaderWrapper

This commit is contained in:
Grant Sanderson
2023-01-25 13:45:18 -08:00
parent c94d8fd3b0
commit 2c737ed540
4 changed files with 134 additions and 129 deletions

View File

@ -1841,7 +1841,7 @@ class Mobject(object):
def init_shader_data(self, ctx: Context):
self.shader_indices = np.zeros(0)
self.shader_wrapper = ShaderWrapper(
context=ctx,
ctx=ctx,
vert_data=self.data,
shader_folder=self.shader_folder,
texture_paths=self.texture_paths,