renderInstances method
void
renderInstances(
- dynamic start,
- dynamic count,
- dynamic primcount
)
override
Implementation
@override
void renderInstances(start, count, primcount) {
if (primcount == 0) return;
var extension, methodName;
if (isWebGL2) {
gl.drawArraysInstanced(mode, start, count, primcount);
} else {
extension = extensions.get('ANGLE_instanced_arrays');
methodName = 'drawArraysInstancedANGLE';
if (extension == null) {
print(
'THREE.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);
}