1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

add pointer shortcut

This commit is contained in:
Kevin Levron 2021-04-04 22:29:57 +02:00
parent 405d7bfa65
commit 42cdb9fb53

View File

@ -47,6 +47,8 @@ export default defineComponent({
this.renderer = this.three.renderer; this.renderer = this.three.renderer;
this.renderer.shadowMap.enabled = this.shadow; this.renderer.shadowMap.enabled = this.shadow;
this.pointer = this.three.pointer;
if (this.xr) { if (this.xr) {
this.renderer.domElement.parentNode.appendChild(VRButton.createButton(this.renderer)); this.renderer.domElement.parentNode.appendChild(VRButton.createButton(this.renderer));
this.renderer.xr.enabled = true; this.renderer.xr.enabled = true;