当与addGroup. _THREE.InstancedBufferGeometryTHREE.MultiMaterial
这是 r75,源代码如下所示:
THREE.InstancedBufferGeometry.prototype.addGroup = function ( start, count, instances ) {
this.groups.push( {
start: start,
count: count,
instances: instances
} );
};
除了“复制”方法,我看不到字段“实例”的其他用途。此组中没有“materialIndex”字段,如THREE.BufferGeometry.
如果我尝试渲染Mesh( InstancedBufferGeometry, MultiMaterial )不起作用的东西,我会从组材料中的“可见”字段中得到一个错误。
instances用materialIndexin替换addGroup就好了,但必须是另一种用于instances现场的用途。我不明白这一点,或者这可能是一个错误。
在three.js页面发帖:https ://github.com/mrdoob/three.js/issues/8912