toBlob(type = "image/png", quality) {
		if (typeof this.canvas.convertToBlob === "function") {
			return this.canvas.convertToBlob({ type, quality });
		} else {
			return new Promise((resolve) => {
				this.canvas.toBlob(
					(blob) => {
						resolve(blob);
					},
					type,
					quality,
				);
			});
		}
	}
creates a Blob object representing the image contained in this canvas texture
@param {string} [type="image/png"] - A string indicating the image format
@param {number} [quality] - A Number between 0 and 1 indicating the image quality to be used when creating images using file formats that support lossy compression (such as image/jpeg or image/webp). A user agent will use its default quality value if this option is not specified, or if the number is outside the allowed range.
@returns {Promise} A Promise returning a Blob object representing the image contained in this canvas texture
@example
renderTarget.convertToBlob().then((blob) => console.log(blob));