setRenderTarget(renderTarget) {
        if(!renderTarget || renderTarget.type !== "RenderTarget") {
            if(!this.renderer.production) {
                throwWarning(this.type + ": Could not set the render target because the argument passed is not a RenderTarget class object", renderTarget);
            }

            return;
        }

        if(this.type === "Plane") {
            // remove from scene stacks
            this.renderer.scene.removePlane(this);
        }

        this.target = renderTarget;

        if(this.type === "Plane") {
            // add to scene stacks again
            this.renderer.scene.addPlane(this);
        }
    }
This function adds a render target to a mesh

     params :
     @renderTarger (RenderTarget): the render target to add to that mesh
*