Created
August 15, 2015 07:13
-
-
Save zeffii/d9549af03c4b5f1e9a9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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