提交 9d2b4206 编写于 作者: G Garrett Johnson

Add warning when exporting if a texture map is used with mesh basic material

上级 cc7deb94
......@@ -359,7 +359,16 @@ THREE.ColladaExporter.prototype = {
type = 'constant';
}
if ( m.map !== null ) {
// The Collada spec does not support diffuse texture maps with the
// constant shader type.
// mrdoob/three.js#15469
console.warn( 'ColladaExporter: Texture maps not supported with MeshBasicMaterial.' );
}
}
var emissive = m.emissive ? m.emissive : new THREE.Color( 0, 0, 0 );
var diffuse = m.color ? m.color : new THREE.Color( 0, 0, 0 );
......@@ -427,7 +436,7 @@ THREE.ColladaExporter.prototype = {
`<float sid="shininess">${ shininess }</float>`
) +
'</shininess>'
'</shininess>'
: ''
) +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册