From 7050c7e7b00a271e794adce247fb6361432c88b7 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 16 Jan 2023 14:11:30 -0800 Subject: [PATCH] Change type for Surface.shader_dtype --- manimlib/mobject/types/surface.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manimlib/mobject/types/surface.py b/manimlib/mobject/types/surface.py index cc620fa0..d0315076 100644 --- a/manimlib/mobject/types/surface.py +++ b/manimlib/mobject/types/surface.py @@ -5,7 +5,6 @@ import numpy as np from manimlib.constants import GREY from manimlib.constants import OUT -from manimlib.constants import ORIGIN from manimlib.mobject.mobject import Mobject from manimlib.utils.bezier import integer_interpolate from manimlib.utils.bezier import interpolate @@ -26,12 +25,12 @@ if TYPE_CHECKING: class Surface(Mobject): render_primitive: int = moderngl.TRIANGLES shader_folder: str = "surface" - shader_dtype: Sequence[Tuple[str, type, Tuple[int]]] = [ + shader_dtype: np.dtype = np.dtype([ ('point', np.float32, (3,)), ('du_point', np.float32, (3,)), ('dv_point', np.float32, (3,)), ('rgba', np.float32, (4,)), - ] + ]) pointlike_data_keys = ['point', 'du_point', 'dv_point'] def __init__(