Explorar el Código

missing cross origin setting

David Gillen hace 7 años
padre
commit
b4230ce772
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/Helpers/babylon.videoDome.ts

+ 1 - 0
src/Helpers/babylon.videoDome.ts

@@ -75,6 +75,7 @@ module BABYLON {
             // configure material
             texture.coordinatesMode = BABYLON.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE; // matches orientation
             texture.wrapV = Texture.CLAMP_ADDRESSMODE; // always clamp the up/down
+            texture.video.crossOrigin = "anonymous";
             material.reflectionTexture = this._videoTexture;
             material.useEquirectangularFOV = true;
             material.fovMultiplier = 1.0;