mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Fix fill_depth_vert_format
This commit is contained in:
parent
79ec791fc2
commit
67bedc6d1f
1 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ class VShaderWrapper(ShaderWrapper):
|
|||
self.fill_border_vert_format = '3f 20x 4f 4f 12x 1f'
|
||||
self.fill_border_vert_attributes = ['point', 'joint_product', 'stroke_rgba', 'stroke_width']
|
||||
|
||||
self.fill_depth_vert_format = '3f 40x 3f 16x'
|
||||
self.fill_depth_vert_format = '3f 52x 3f 4x'
|
||||
self.fill_depth_vert_attributes = ['point', 'base_normal']
|
||||
|
||||
def init_vertex_objects(self):
|
||||
|
@ -379,7 +379,7 @@ class VShaderWrapper(ShaderWrapper):
|
|||
# Return to original blending state
|
||||
gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA)
|
||||
|
||||
# Meant to be a static method returning one shared value across all VShaderWrappers
|
||||
# Static method returning one shared value across all VShaderWrappers
|
||||
@lru_cache
|
||||
@staticmethod
|
||||
def get_fill_canvas(ctx: moderngl.Context) -> Tuple[Framebuffer, VertexArray, Framebuffer]:
|
||||
|
|
Loading…
Add table
Reference in a new issue