Mr.doob 10 年之前
父节点
当前提交
8c6c7ed70d
共有 1 个文件被更改,包括 5 次插入10 次删除
  1. 5 10
      utils/exporters/max/ThreeJSExporter.ms

+ 5 - 10
utils/exporters/max/ThreeJSExporter.ms

@@ -484,11 +484,11 @@ rollout ThreeJSExporter "ThreeJSExporter"
 				DumpColor mat.ambient  "colorAmbient"
 				DumpColor mat.specular "colorSpecular"
 
-				transparency = mat.opacity / 100
+				t = mat.opacity / 100
+				s = mat.glossiness
 
-				Format "\"transparency\"  : %,\n" transparency to:ostream
-				Format "\"specularCoef\"  : %,\n" mat.specularLevel to:ostream
-				Format "\"shininess\"  : %,\n" mat.glossiness to:ostream
+				Format "\"transparency\"  : %,\n" t to:ostream
+				Format "\"specularCoef\"  : %,\n" s to:ostream
 
 				-- maps
 
@@ -497,11 +497,6 @@ rollout ThreeJSExporter "ThreeJSExporter"
 				DumpMap mat.specularMap "mapSpecular"
 				DumpMap mat.bumpMap 	"mapBump"
 				DumpMap mat.opacityMap 	"mapAlpha"
-				
-				if mat.shaderByName == "Phong" then
-				(
-					Format "\"shading\" : \"phong\",\n" to:ostream
-				)
 
 			)
 			else
@@ -1076,4 +1071,4 @@ rollout ThreeJSExporter "ThreeJSExporter"
 	)
 
 )
-createDialog ThreeJSExporter width:300
+createDialog ThreeJSExporter width:300