|
@@ -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
|