Have VMobject inherit children uniforms when rendering

This commit is contained in:
Grant Sanderson 2023-01-27 14:48:57 -08:00
parent 35c19fe8a7
commit 1f6363821b

View file

@ -1288,6 +1288,8 @@ class VMobject(Mobject):
self.fill_shader_wrapper.read_in(fill_datas, fill_indices or None),
self.stroke_shader_wrapper.read_in(stroke_datas),
]
# TODO, account for submob uniforms separately?
self.uniforms.update(family[0].uniforms)
return [sw for sw in shader_wrappers if len(sw.vert_data) > 0]