DOMException: Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’Uncaught DOMException: Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’: The image element contains cross-origin data, and may not be loaded.
Uncaught DOMException: Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’: The image element contains cross-origin data, and may not be loaded.解决方法1:将图片转换为Base64编码,直接有效。可通过以下地址进行在线转换。http://www.jq22.com/demo/baseToImage201807250139/可直接将您代码调用图片