提交 e1bbaeea 编写于 作者: M Mugen87

WebGLRenderer: Warning instead of creating groups for MultiMaterial

上级 974001fc
......@@ -1434,23 +1434,9 @@ function WebGLRenderer( parameters ) {
var groups = geometry.groups;
var materials = material.materials;
// there must be at least one group if a MultiMaterial is used
if ( groups.length === 0 ) {
if ( geometry.index !== null ) {
// indexed geometry
geometry.addGroup( 0, geometry.index.count );
} else {
// non-indexed geometry
geometry.addGroup( 0, geometry.attributes.position.count );
}
console.warn( 'THREE.WebGLRenderer: MultiMaterial can not be used without groups.' );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册