I\'m reading a tutorial on WebGL (link). In this tutorial, we load a texture locally. However, because of cross-origin issue for WebGL texture, we must add img.crossOrigin
img.crossOrigin
To load images locally you need to run a server and NOT set image.crossOrigin
I recommend you start with this one or one of the many here