This commit is contained in:
yushijinhun 2020-08-18 15:37:02 +08:00
parent a1c4a2b576
commit dbd3ea7dcc
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 7 additions and 3 deletions

View File

@ -72,8 +72,7 @@ export class SkinObject extends Group {
map: texture, map: texture,
side: DoubleSide, side: DoubleSide,
transparent: true, transparent: true,
opacity: 1, alphaTest: 1e-5
alphaTest: 0.5
} }
const layer1Material = new MeshBasicMaterial(layer1); const layer1Material = new MeshBasicMaterial(layer1);
@ -396,7 +395,12 @@ export class CapeObject extends Group {
constructor(texture: Texture) { constructor(texture: Texture) {
super(); super();
const capeMaterial = new MeshBasicMaterial({ map: texture, transparent: true, opacity: 1, side: DoubleSide, alphaTest: 0.5 }); const capeMaterial = new MeshBasicMaterial({
map: texture,
side: DoubleSide,
transparent: true,
alphaTest: 1e-5
});
// back = outside // back = outside
// front = inside // front = inside