소스 검색

A-Frame plugin: add the crossOrigin attribute to reference images

customisations
alemart 6 달 전
부모
커밋
025e18a29a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      plugins/aframe-with-encantar.js

+ 1
- 0
plugins/aframe-with-encantar.js 파일 보기

@@ -968,6 +968,7 @@ AFRAME.registerComponent('ar-reference-image', ARComponent({
968 968
             throw new Error('Unspecified src attribute of ar-reference-image');
969 969
 
970 970
         const img = new Image();
971
+        img.crossOrigin = 'anonymous';
971 972
         img.src = this.data.src;
972 973
 
973 974
         return {

Loading…
취소
저장