setColorAt( instanceId, color ) {

		this.validateInstanceId( instanceId );

		if ( this._colorsTexture === null ) {

			this._initColorsTexture();

		}

		color.toArray( this._colorsTexture.image.data, instanceId * 4 );
		this._colorsTexture.needsUpdate = true;

		return this;

	}
Sets the given color to the defined instance.

@param {number} instanceId - The ID of an instance to set the color of.
@param {Color} color - The color to set the instance to.
@return {BatchedMesh} A reference to this batched mesh.