X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_material.py;h=d62276f76221bbcf3d89ea3e78aadc6040fd8599;hp=e3014f3cc6f55c6c7c05353685dfbd28bc5b8cb6;hb=6b9338845dfee441cd18ad6c633e4feef8ad14e1;hpb=87b74b1263710b0acb9e0b72283e972fd54ee91b diff --git a/blender/io_mspgl/export_material.py b/blender/io_mspgl/export_material.py index e3014f3c..d62276f7 100644 --- a/blender/io_mspgl/export_material.py +++ b/blender/io_mspgl/export_material.py @@ -22,8 +22,11 @@ def create_technique_resource(material, resources): for u in material.uniforms: ss.sub.append(Statement("uniform", u.name, *u.values[:u.size])) st.sub.append(ss) - elif material.receive_shadows: - st.sub.append(Statement("receive_shadows", True)) + else: + if material.receive_shadows: + st.sub.append(Statement("receive_shadows", True)) + if material.image_based_lighting: + st.sub.append(Statement("image_based_lighting", True)) tech_res.statements.append(st)