I have a simple WebGL canvas, where I'm attempting to render a texture on a square. When working with textures as local files, all is fine. But when I try to load a texture from the web, I get a black canvas.
Please see this fiddle for a demo. I have made the shaders and JavaScript very simple.
image.crossOrigin = 'anonymous';
to indicate that I'm using CORS. \$\endgroup\$