Parcourir la source

missing cross origin setting

David Gillen il y a 7 ans
Parent
commit
b4230ce772
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;