From 42cdb9fb53388da29346a3dd895d11612a1752bd Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Sun, 4 Apr 2021 22:29:57 +0200 Subject: [PATCH] add pointer shortcut --- src/core/Renderer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/Renderer.js b/src/core/Renderer.js index 989718f..61af4dc 100644 --- a/src/core/Renderer.js +++ b/src/core/Renderer.js @@ -47,6 +47,8 @@ export default defineComponent({ this.renderer = this.three.renderer; this.renderer.shadowMap.enabled = this.shadow; + this.pointer = this.three.pointer; + if (this.xr) { this.renderer.domElement.parentNode.appendChild(VRButton.createButton(this.renderer)); this.renderer.xr.enabled = true;