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