提交 95a6997f 编写于 作者: M mlknz 提交者: Mr.doob

instancedBufferGeometry addGroup fix (materialIndex) (#9815)

上级 d68205cd
......@@ -18,13 +18,13 @@ InstancedBufferGeometry.prototype.constructor = InstancedBufferGeometry;
InstancedBufferGeometry.prototype.isInstancedBufferGeometry = true;
InstancedBufferGeometry.prototype.addGroup = function ( start, count, instances ) {
InstancedBufferGeometry.prototype.addGroup = function ( start, count, materialIndex ) {
this.groups.push( {
start: start,
count: count,
instances: instances
materialIndex: materialIndex
} );
......@@ -54,7 +54,7 @@ InstancedBufferGeometry.prototype.copy = function ( source ) {
for ( var i = 0, l = groups.length; i < l; i ++ ) {
var group = groups[ i ];
this.addGroup( group.start, group.count, group.instances );
this.addGroup( group.start, group.count, group.materialIndex );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册