mirror of
https://github.com/troisjs/trois.git
synced 2024-11-23 20:02:32 +08:00
add pointer shortcut
This commit is contained in:
parent
405d7bfa65
commit
42cdb9fb53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user