Add uploadTexture method to the WebGLRenderer.