This commit is contained in:
syuilo 2019-08-18 16:51:27 +09:00
parent 84a891b061
commit 7297f04f60

View file

@ -210,7 +210,10 @@ export class Room {
//#region Avatar
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.wrapT = THREE.RepeatWrapping;
iconTexture.anisotropy = 16;
@ -467,6 +470,7 @@ export class Room {
});
const img = new Image();
img.crossOrigin = 'anonymous';
img.onload = () => {
const uvInfo = def.texture[t].uv;