mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 04:23:16 +08:00
Add refresh_shader_info_id insetead of having create_shader_info_id called all the time
This commit is contained in:
@ -91,6 +91,10 @@ def create_shader_info_id(shader_info):
|
||||
return "|".join([str(shader_info[key]) for key in SHADER_KEYS_FOR_ID])
|
||||
|
||||
|
||||
def refresh_shader_info_id(shader_info):
|
||||
shader_info["id"] = create_shader_info_id(shader_info)
|
||||
|
||||
|
||||
def shader_info_program_id(shader_info):
|
||||
return "|".join([str(shader_info[key]) for key in ["vert", "geom", "frag"]])
|
||||
|
||||
|
Reference in New Issue
Block a user