From ab1d6554429cf348b2e66272d305e680c339e9fe Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 5 Jun 2015 16:19:58 +0200 Subject: [PATCH] Cascade is now transparent --- js/prototype/initScene.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/prototype/initScene.js b/js/prototype/initScene.js index dcfc6ff..05156ee 100644 --- a/js/prototype/initScene.js +++ b/js/prototype/initScene.js @@ -37,7 +37,8 @@ function initPeachCastle(scene, collidableObjects, loader, static_path) { object.raycastable = true; if (object.material.name === 'Material.103_princess_peaches_cast') { 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); object.material.opacity = 0.5; object.material.side = THREE.FrontSide;