Support for transparent capes

Minecraft supports this.
This commit is contained in:
Andrey 2018-04-14 17:46:10 +02:00 committed by GitHub
parent f91db772b5
commit 651c6b0592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class SkinViewer {
this.layer1Material = new THREE.MeshBasicMaterial({ map: this.skinTexture, side: THREE.FrontSide }); this.layer1Material = new THREE.MeshBasicMaterial({ map: this.skinTexture, side: THREE.FrontSide });
this.layer2Material = new THREE.MeshBasicMaterial({ map: this.skinTexture, transparent: true, opacity: 1, side: THREE.DoubleSide }); this.layer2Material = new THREE.MeshBasicMaterial({ map: this.skinTexture, transparent: true, opacity: 1, side: THREE.DoubleSide });
this.capeMaterial = new THREE.MeshBasicMaterial({ map: this.capeTexture }); this.capeMaterial = new THREE.MeshBasicMaterial({ map: this.capeTexture, transparent: true });
// scene // scene
this.scene = new THREE.Scene(); this.scene = new THREE.Scene();