Function citro3d_sys::Mtx_PerspStereo
source · pub unsafe extern "C" fn Mtx_PerspStereo(
mtx: *mut C3D_Mtx,
fovy: f32,
aspect: f32,
near: f32,
far: f32,
iod: f32,
screen: f32,
isLeftHanded: bool
)
Expand description
Stereo perspective projection
Note: Typically you will use iod to mean the distance between the eyes. Plug in -iod for the left eye and iod for the right eye. Note: The focal length is defined by screen. If objects are further than this, they will appear to be inside the screen. If objects are closer than this, they will appear to pop out of the screen. Objects at this distance appear to be at the screen.
§Arguments
mtx
(direction out) - Output matrixfovy
(direction in) - Vertical field of view in radiansaspect
(direction in) - Aspect ration of projection plane (width/height)near
(direction in) - Near clip plane (Z=near)far
(direction in) - Far clip plane (Z=far)iod
(direction in) - Interocular distancescreen
(direction in) - Focal lengthisLeftHanded
(direction in) - Whether to build a LH projectionMtx_Persp
Mtx_PerspTilt
Mtx_PerspStereoTilt