Explorar el Código

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

customisations
alemart hace 6 meses
padre
commit
025e18a29a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      plugins/aframe-with-encantar.js

+ 1
- 0
plugins/aframe-with-encantar.js Ver fichero

@@ -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…
Cancelar
Guardar