瀏覽代碼

support basicmaterial

yomotsu 10 年之前
父節點
當前提交
cb8c01361d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      utils/exporters/blender/addons/io_three/exporter/api/material.py

+ 3 - 0
utils/exporters/blender/addons/io_three/exporter/api/material.py

@@ -243,6 +243,9 @@ def shading(material):
         False: constants.LAMBERT
         False: constants.LAMBERT
     }
     }
 
 
+    if material.use_shadeless:
+        return constants.BASIC
+
     return dispatch[material.specular_intensity > 0.0]
     return dispatch[material.specular_intensity > 0.0]
 
 
 
 

粤ICP备19079148号