new StereoEye(left, top, width, height)
An eye. Contains matrices used when rendering the viewport.
You should not create this directly. Instead, use the vr.StereoParams#getEyes to get eyes that have their information updated automatically.
Parameters:
Name | Type | Description |
---|---|---|
left |
number | Left, in [0-1] view coordinates. |
top |
number | Top, in [0-1] view coordinates. |
width |
number | Width, in [0-1] view coordinates. |
height |
number | Height, in [0-1] view coordinates. |
- Source:
- vr.js, line 1476
Members
-
<readonly> distortionCenterOffsetX :number
-
Eye-specific distortion center X.
Type:
- number
- Source:
- vr.js, line 1490
-
<readonly> distortionCenterOffsetY :number
-
Eye-specific distortion center Y.
Type:
- number
- Source:
- vr.js, line 1497
-
<readonly> orthoProjectionMatrix :vr.mat4f.Type
-
Matrix used for drawing 2D things, like HUDs.
Type:
- Source:
- vr.js, line 1518
-
<readonly> projectionMatrix :vr.mat4f.Type
-
Matrix used for drawing 3D things.
Type:
- Source:
- vr.js, line 1504
-
<readonly> viewAdjustMatrix :vr.mat4f.Type
-
Translation to be applied to the view matrix.
Type:
- Source:
- vr.js, line 1511
-
<readonly> viewport :!Array.<number>
-
2D viewport used when compositing, in [0-1] view coordinates. Stored as [left, top, width, height].
Type:
- !Array.<number>
- Source:
- vr.js, line 1483