The HMDVRDevice interface of the WebVR API represents a head display, providing access to information about each eye, and us to modify the current field of view.
The HMDVRDevice interface of the WebVR API represents a head display, providing access to information about each eye, and us to modify the current field of view.
(get-eye-parameters this & args)
Method.
The getEyeParameters() method of the web.vr.HMDVRDevice
interface
current parameters for the eye specified as its argument ("left"
"right") — stored in a web.vr.VREyeParameters
object.
var myLeftEye = HMDVRDevice.getEyeParameters('left');
See also: https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/getEyeParameters
Method. The getEyeParameters() method of the `web.vr.HMDVRDevice` interface current parameters for the eye specified as its argument (\"left\" \"right\") — stored in a `web.vr.VREyeParameters` object. `var myLeftEye = HMDVRDevice.getEyeParameters('left');` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/getEyeParameters`
(hardware-unit-id this)
Property.
Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
Property. Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
(set-field-of-view this left-fov right-fov z-near z-far)
Method.
The setFieldOfView() method of the web.vr.HMDVRDevice
interface
be used to set the field of view for one eye, or both eyes simultaneously.
HMDVRDevice.setFieldOfView(leftFOV,rightFOV,zNear,zFar);
See also: https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/setFieldOfView
Method. The setFieldOfView() method of the `web.vr.HMDVRDevice` interface be used to set the field of view for one eye, or both eyes simultaneously. `HMDVRDevice.setFieldOfView(leftFOV,rightFOV,zNear,zFar);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HMDVRDevice/setFieldOfView`
(set-hardware-unit-id! this val)
Property.
Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
Property. Returns the distinct hardware ID for the overall hardware unit this VRDevice is a part of. All devices that are part of the physical piece of hardware will have the same hardwareUnitId.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close