renderInstances method

  1. @override
dynamic renderInstances(
  1. dynamic start,
  2. dynamic count,
  3. dynamic primcount
)
override

Implementation

@override
renderInstances(start, count, primcount) {

  if (primcount == 0) return;

  // var extension, methodName;

  // if ( isWebGL2 ) {

  // 	extension = gl;
  // 	methodName = 'drawElementsInstanced';

  // } else {

  // 	extension = extensions.get( 'ANGLE_instanced_arrays' );
  // 	methodName = 'drawElementsInstancedANGLE';

  // 	if ( extension == null ) {

  // 		print( 'THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.' );
  // 		return;

  // 	}

  // }

  // extension[ methodName ]( mode, count, type, start * bytesPerElement, primcount );

  gl.drawElementsInstanced(
      mode, count, type, start * bytesPerElement, primcount);

  info.update(count, mode, primcount);
}