drawPattern(pattern, x, y, width, height) {
		const uvs = pattern.getUVs("0,0," + width + "," + height);
		this.setCompositor("quad");
		this.currentCompositor.addQuad(
			pattern,
			x,
			y,
			width,
			height,
			uvs[0],
			uvs[1],
			uvs[2],
			uvs[3],
			this.currentTint.toUint32(this.getGlobalAlpha()),
		);
	}
Draw a pattern within the given rectangle.
@param {TextureAtlas} pattern - Pattern object
@param {number} x - x position where to draw the pattern
@param {number} y - y position where to draw the pattern
@param {number} width - width of the pattern
@param {number} height - height of the pattern
@see WebGLRenderer#createPattern