diff --git a/src/components/hoverable-visuals.js b/src/components/hoverable-visuals.js index 60471dc613ee1430586058697603ba623d9014db..aa33cd4414b611055e592fb520c9b013b945099b 100644 --- a/src/components/hoverable-visuals.js +++ b/src/components/hoverable-visuals.js @@ -8,7 +8,8 @@ const interactorTwoTransform = []; */ AFRAME.registerComponent("hoverable-visuals", { schema: { - cursorController: { type: "selector" } + cursorController: { type: "selector" }, + enableSweepingEffect: { type: "boolean", default: true } }, init() { // uniforms and boundingSphere are set from the component responsible for loading the mesh. @@ -54,7 +55,7 @@ AFRAME.registerComponent("hoverable-visuals", { } for (const uniform of this.uniforms.values()) { - uniform.hubs_EnableSweepingEffect.value = true; + uniform.hubs_EnableSweepingEffect.value = this.data.enableSweepingEffect; uniform.hubs_SweepParams.value = this.sweepParams; uniform.hubs_HighlightInteractorOne.value = !!interactorOne; diff --git a/src/components/super-spawner.js b/src/components/super-spawner.js index 7ff4e1189f589d9d026ba63e920dfc5d47a78760..c5e557401cf5ea9e57e471e7b83a1b638f8cb4b7 100644 --- a/src/components/super-spawner.js +++ b/src/components/super-spawner.js @@ -85,6 +85,8 @@ AFRAME.registerComponent("super-spawner", { this.onSpawnEvent = this.onSpawnEvent.bind(this); this.sceneEl = document.querySelector("a-scene"); + + this.el.setAttribute("hoverable-visuals", { cursorController: "#cursor-controller", enableSweepingEffect: false }); }, play() {