Remove attributes from VMobject which are now handled in VShaderWrapper

This commit is contained in:
Grant Sanderson
2024-08-19 10:04:28 -05:00
parent 4174f314b4
commit a12fa0c03d

View File

@ -63,8 +63,6 @@ DEFAULT_FILL_COLOR = GREY_C
class VMobject(Mobject):
fill_shader_folder: str = "quadratic_bezier_fill"
stroke_shader_folder: str = "quadratic_bezier_stroke"
shader_dtype: np.dtype = np.dtype([
('point', np.float32, (3,)),
('stroke_rgba', np.float32, (4,)),
@ -75,12 +73,6 @@ class VMobject(Mobject):
('unit_normal', np.float32, (3,)),
('fill_border_width', np.float32, (1,)),
])
fill_data_names = ['point', 'fill_rgba', 'base_point', 'unit_normal'] # Delete these
stroke_data_names = ['point', 'stroke_rgba', 'stroke_width', 'joint_product'] # Delete these
fill_render_primitive: int = moderngl.TRIANGLES
stroke_render_primitive: int = moderngl.TRIANGLES
pre_function_handle_to_anchor_scale_factor: float = 0.01
make_smooth_after_applying_functions: bool = False
# TODO, do we care about accounting for varying zoom levels?