How to enable VR?

There are few changes we need to make to turn our experience into a VR experience.

import { VRButton } from "/jsm/webxr/VRButton";
renderer.xr.enabled = true;
document.body.appendChild(VRButton.createButton(renderer));

Run the VR experience on your phone

If you are on an iOS

Last updated