From 486e235453478dab6460947947a764033728799f Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Mon, 10 Dec 2018 18:44:10 -0800 Subject: [PATCH] disable hitleft/hitright intersection shader uniform for now --- src/components/saber-particles.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/saber-particles.js b/src/components/saber-particles.js index 62b8913..e8326bd 100644 --- a/src/components/saber-particles.js +++ b/src/components/saber-particles.js @@ -66,11 +66,13 @@ AFRAME.registerComponent('saber-particles', { if (!intersection) { return; } // Update intersection material if necessary. + /* if (this.intersectedEl.components.wall || this.intersectedEl.id === 'floor') { const uniform = this.data.hand === RIGHT ? HIT_RIGHT : HIT_LEFT; const material = this.intersectedEl.getObject3D('mesh').material; material.uniforms[uniform].value = intersection.point; } + */ if (this.particleSystem && this.particleSystem.active) { // Update particle position.