]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_material.py
Implement image-based lighting in PbrMaterial
[libs/gl.git] / blender / io_mspgl / export_material.py
index e3014f3cc6f55c6c7c05353685dfbd28bc5b8cb6..d62276f76221bbcf3d89ea3e78aadc6040fd8599 100644 (file)
@@ -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)