THREE.error('THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');
return;
varoffsets=geometry.offsets;
}
if(offsets.length===0){
extension.drawElementsInstancedANGLE(mode,index.array.length,type,0,geometry.maxInstancedCount);// Draw the instanced meshes
THREE.error('THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');
return;
}
_this.info.render.calls++;
_this.info.render.vertices+=index.array.length;// not really true, here vertices can be shared
_this.info.render.faces+=index.array.length/3;
}else{
extension.drawElementsInstancedANGLE(mode,index.array.length,type,0,geometry.maxInstancedCount);// Draw the instanced meshes
// if there is more than 1 chunk
// must set attribute pointers to use new offsets for each chunk
// even if geometry and materials didn't change
}else{
updateBuffers=true;
_gl.drawElements(mode,index.array.length,type,0);
for(vari=0,il=offsets.length;i<il;i++){
}
_this.info.render.calls++;
_this.info.render.vertices+=index.array.length;// not really true, here vertices can be shared
_this.info.render.faces+=index.array.length/3;
varstartIndex=offsets[i].index;
}else{
if(updateBuffers){
// if there is more than 1 chunk
// must set attribute pointers to use new offsets for each chunk
THREE.error('THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');
extension.drawElementsInstancedANGLE(mode,offsets[i].count,type,offsets[i].start*size,offsets[i].count,type,offsets[i].instances);// Draw the instanced meshes
THREE.error('THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');
return;
}
_this.info.render.calls++;
_this.info.render.vertices+=offsets[i].count;// not really true, here vertices can be shared
_this.info.render.faces+=offsets[i].count/3;
extension.drawElementsInstancedANGLE(mode,offsets[i].count,type,offsets[i].start*size,offsets[i].count,type,offsets[i].instances);// Draw the instanced meshes
THREE.error('THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');
return;
if(extension===null){
}
THREE.error('THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');