Specify that uniforms can be numpy arrays

This commit is contained in:
Grant Sanderson 2023-01-09 11:56:21 -08:00
parent ccf7a503c1
commit fc86bf7f9e

View file

@ -132,7 +132,7 @@ class Mobject(object):
} }
def init_uniforms(self): def init_uniforms(self):
self.uniforms: dict[str, float] = { self.uniforms: dict[str, float | np.ndarray] = {
"is_fixed_in_frame": float(self.is_fixed_in_frame), "is_fixed_in_frame": float(self.is_fixed_in_frame),
"gloss": self.gloss, "gloss": self.gloss,
"shadow": self.shadow, "shadow": self.shadow,