mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 12:07:45 +00:00
Go back to recomputing shader id
This commit is contained in:
parent
d1f1ed6a1a
commit
5ce8d08e0f
1 changed files with 3 additions and 3 deletions
|
|
@ -56,8 +56,8 @@ def get_shader_info(data=None,
|
|||
"depth_test": depth_test,
|
||||
"render_primative": str(render_primative),
|
||||
}
|
||||
# A unique id for a shader
|
||||
result["id"] = "|".join([str(result[key]) for key in SHADER_KEYS_FOR_ID])
|
||||
# # A unique id for a shader
|
||||
# result["id"] = "|".join([str(result[key]) for key in SHADER_KEYS_FOR_ID])
|
||||
return result
|
||||
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ def is_valid_shader_info(shader_info):
|
|||
|
||||
def shader_info_to_id(shader_info):
|
||||
# A unique id for a shader
|
||||
return shader_info["id"]
|
||||
return "|".join([str(shader_info[key]) for key in SHADER_KEYS_FOR_ID])
|
||||
|
||||
|
||||
def same_shader_type(info1, info2):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue