X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fmaterial.py;h=e97561b795f5ffd6ffa5ec915c0e8c15cfc5fe1d;hb=147f7097b77e591197dc38b2b263add57d69e4fc;hp=d25286055056034a68d936976d18b4755ceb0685;hpb=401f74574e55fd9e490eaa4f16f1cc97d0603513;p=libs%2Fgl.git diff --git a/blender/io_mspgl/material.py b/blender/io_mspgl/material.py index d2528605..e97561b7 100644 --- a/blender/io_mspgl/material.py +++ b/blender/io_mspgl/material.py @@ -92,6 +92,12 @@ class Material: roughness.set_from_input(material.node_tree, surface_node.inputs["Roughness"]) normal.set_from_input(material.node_tree, surface_node.inputs["Normal"]) emission.set_from_input(material.node_tree, surface_node.inputs["Emission"]) + elif surface_node.type=='EMISSION': + self.type = "unlit" + + color = self.create_property("color", "texture", (1.0, 1.0, 1.0, 1.0)) + + color.set_from_input(material.node_tree, surface_node.inputs["Color"]) else: raise Exception("Unsupported surface node type "+surface_node.type)