whs-vrkit
v0.1.2
Published
Modules for VR in WhitestormJS
Downloads
2
Readme
whs-vrkit - Modules for VR
Based on
VRControls
andVREffect
Usage
const app = new WHS.App([
new WHS.ElementModule(), // This module is required
// other modules
new VRKit.VRModule() // 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.module(
new VRKit.VRControls({
object: app.manager.get('camera')
})
);
Parameters:
- object - Object3D. An object controlled by VR (usually camera).
- intensity - Number. Move intensity.
manager
VRModule
is defined as vr
.