mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 17:47:44 +00:00
Update elements of VMobject.shader_wrapper_list with depth_test and appropriate uniforms
This commit is contained in:
parent
cc9a4501ad
commit
d6b308ed47
1 changed files with 4 additions and 2 deletions
|
|
@ -1126,9 +1126,11 @@ class VMobject(Mobject):
|
|||
stroke_shader_wrappers,
|
||||
]
|
||||
for sw, sw_list in zip(self.shader_wrapper_list, sw_lists):
|
||||
if not sw_list:
|
||||
continue
|
||||
sw.read_in(*sw_list)
|
||||
sw.depth_test = self.depth_test
|
||||
sw.uniforms = self.uniforms
|
||||
sw.depth_test = any(sw.depth_test for sw in sw_list)
|
||||
sw.uniforms.update(sw_list[0].uniforms)
|
||||
return list(filter(lambda sw: len(sw.vert_data) > 0, self.shader_wrapper_list))
|
||||
|
||||
def get_stroke_shader_data(self) -> np.ndarray:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue