Fix #5291
This commit is contained in:
parent
bbf59c7d9f
commit
6288de5813
1 changed files with 5 additions and 1 deletions
|
@ -210,7 +210,10 @@ export class Room {
|
||||||
//#region Avatar
|
//#region Avatar
|
||||||
const avatarUrl = user.avatarUrl;
|
const avatarUrl = user.avatarUrl;
|
||||||
|
|
||||||
const iconTexture = new THREE.TextureLoader().load(avatarUrl);
|
const textureLoader = new THREE.TextureLoader();
|
||||||
|
textureLoader.crossOrigin = 'anonymous';
|
||||||
|
|
||||||
|
const iconTexture = textureLoader.load(avatarUrl);
|
||||||
iconTexture.wrapS = THREE.RepeatWrapping;
|
iconTexture.wrapS = THREE.RepeatWrapping;
|
||||||
iconTexture.wrapT = THREE.RepeatWrapping;
|
iconTexture.wrapT = THREE.RepeatWrapping;
|
||||||
iconTexture.anisotropy = 16;
|
iconTexture.anisotropy = 16;
|
||||||
|
@ -467,6 +470,7 @@ export class Room {
|
||||||
});
|
});
|
||||||
|
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
|
img.crossOrigin = 'anonymous';
|
||||||
img.onload = () => {
|
img.onload = () => {
|
||||||
const uvInfo = def.texture[t].uv;
|
const uvInfo = def.texture[t].uv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue