Cascade is now transparent

This commit is contained in:
Thomas FORGIONE 2015-06-05 16:19:58 +02:00
parent b7ecc1301b
commit ab1d655442
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ function initPeachCastle(scene, collidableObjects, loader, static_path) {
object.raycastable = true; object.raycastable = true;
if (object.material.name === 'Material.103_princess_peaches_cast') { if (object.material.name === 'Material.103_princess_peaches_cast') {
THREEx.Transparency.push(object); THREEx.Transparency.push(object);
} else if (object.material.name === 'Material.136_princess_peaches_cast') { } else if (object.material.name === 'Material.136_princess_peaches_cast' ||
object.material.name === 'Material.135_princess_peaches_cast') {
THREEx.Transparency.push(object); THREEx.Transparency.push(object);
object.material.opacity = 0.5; object.material.opacity = 0.5;
object.material.side = THREE.FrontSide; object.material.side = THREE.FrontSide;