浏览代码

missing cross origin setting

David Gillen 7 年之前
父节点
当前提交
b4230ce772
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;