Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created August 15, 2015 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/d9549af03c4b5f1e9a9b to your computer and use it in GitHub Desktop.
Save zeffii/d9549af03c4b5f1e9a9b to your computer and use it in GitHub Desktop.
# this is set.
misc_materials = {
"Stationary_Water",
"Flowing_Water",
"Slime",
"Ice",
"Stained_Glass",
"Stained_Glass_Pane"
}
for material in bpy.data.materials:
print("Started "+str(material))
# if the material is transparent use a special shader
if any((material == bpy.data.materials.get(tm)) for tm in transparentBlocks):
pass
# if the material is a light emmitting block use a special shader
elif any((material == bpy.data.materials.get(lm)) for lm in lightBlocks):
pass
elif material.name in misc_materials:
pass
else:
# use a normal shader
Normal_Shader(material)
print("Finished "+str(material))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment