remove method

dynamic remove(
  1. dynamic attribute
)

Implementation

remove(attribute) {
  if (attribute is InterleavedBufferAttribute) attribute = attribute.data;

  var data = this.buffers.get(attribute);

  if (data != null) {
    data.buffer.destroy();

    this.buffers.delete(attribute);
  }
}