whs-vrkit - Modules for VR
Based on
VRControls
andVREffect
Usage
const app = // This module is required // other modules // enables VR;
API
new VRKit.VRModule({message = true, button = true})
Parameters:
- message - Boolean. Defines whether show message about VR displays.
- button - Boolean. ...whether add button to enter VR mode.
new VRKit.VRControls()
app;
Parameters:
- object - Object3D. An object controlled by VR (usually camera).
- intensity - Number. Move intensity.
manager
VRModule
is defined as vr
.