renderInstances method
void
renderInstances(
- int start,
- int count,
- int primcount
)
override
Implementation
@override
void renderInstances(int start, int count, int primcount) {
if (primcount == 0) return;
dynamic extension;
String methodName;
if (isWebGL2) {
gl.drawArraysInstanced(mode, start, count, primcount);
}
else {
extension = extensions.get('ANGLE_instanced_arrays');
methodName = 'drawArraysInstancedANGLE';
if (extension == null) {
console.info('WebGLBufferRenderer: using three.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.');
return;
}
extension[methodName](mode, start, count, primcount);
}
info.update(count, mode, primcount);
}