From 591c9957db5bf0b82fc5123da767d38caa69e3d6 Mon Sep 17 00:00:00 2001 From: netpro2k <netpro2k@gmail.com> Date: Thu, 5 Apr 2018 19:50:35 -0700 Subject: [PATCH] Make invading opacity configurable --- src/systems/personal-space-bubble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/personal-space-bubble.js b/src/systems/personal-space-bubble.js index d87075cb3..108eff503 100644 --- a/src/systems/personal-space-bubble.js +++ b/src/systems/personal-space-bubble.js @@ -153,7 +153,7 @@ AFRAME.registerComponent("personal-space-invader", { setInvading(invading) { if (this.targetMaterial) { - this.targetMaterial.opacity = invading ? 0.3 : 1; + this.targetMaterial.opacity = invading ? this.data.invadingOpacity : 1; this.targetMaterial.transparent = invading; } else { this.el.object3D.visible = !invading; -- GitLab