Skip to content

Commit

Permalink
lower alphaTest for transparent parts
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Sep 9, 2020
1 parent 2f667fb commit afd82cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skin/index.js
Expand Up @@ -307,7 +307,7 @@ function createCube(texture, width, height, depth, textures, slim, name, transpa

let geometry = new THREE.BoxGeometry(width, height, depth);
let material = new THREE.MeshBasicMaterial({
/*color: 0x00ff00,*/map: texture, transparent: transparent || false, alphaTest: 0.5, side: transparent ? THREE.DoubleSide : THREE.FrontSide//TODO: double sided not working properly
/*color: 0x00ff00,*/map: texture, transparent: transparent || false, alphaTest: 0.1, side: transparent ? THREE.DoubleSide : THREE.FrontSide//TODO: double sided not working properly
});

geometry.computeBoundingBox();
Expand Down

0 comments on commit afd82cb

Please sign in to comment.