Cross-origin image load denied with three.js in chrome

前端 未结 7 1998
情深已故
情深已故 2020-12-06 05:05

Trying to add material in THREE.js like this

var materialWall = new materialClass( { color: 0xffffff, map: THREE.ImageUtils.loadTexture( \'image         


        
7条回答
  •  暖寄归人
    2020-12-06 05:09

    If you are running Chrome from localhost and using Three.js, you probably need to run Chrome with this command line flag:

    c:// ... /chrome.exe --allow-file-access-from-files
    

提交回复
热议问题