提交 7a552656 编写于 作者: M Mr.doob

MaterialExporter: Don't export vertexColors: 0.

Hesitant whether this should be done for everything (only export what isn't default).
上级 ea7d4401
......@@ -26,7 +26,7 @@ THREE.MaterialExporter.prototype = {
output.type = 'MeshBasicMaterial';
output.color = material.color.getHex();
output.vertexColors = material.vertexColors;
if ( material.vertexColors !== THREE.NoColors ) output.vertexColors = material.vertexColors;
output.opacity = material.opacity;
output.transparent = material.transparent;
output.wireframe = material.wireframe;
......@@ -37,7 +37,7 @@ THREE.MaterialExporter.prototype = {
output.color = material.color.getHex();
output.ambient = material.ambient.getHex();
output.emissive = material.emissive.getHex();
output.vertexColors = material.vertexColors;
if ( material.vertexColors !== THREE.NoColors ) output.vertexColors = material.vertexColors;
output.opacity = material.opacity;
output.transparent = material.transparent;
output.wireframe = material.wireframe;
......@@ -50,7 +50,7 @@ THREE.MaterialExporter.prototype = {
output.emissive = material.emissive.getHex();
output.specular = material.specular.getHex();
output.shininess = material.shininess;
output.vertexColors = material.vertexColors;
if ( material.vertexColors !== THREE.NoColors ) output.vertexColors = material.vertexColors;
output.opacity = material.opacity;
output.transparent = material.transparent;
output.wireframe = material.wireframe;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册