the parameters of the camera. This parameters are
In VR mode the position of the Three.js camera (in the euclidean Three.js scene) is directly controlled by the VR headset. This method update the position of the observer in the geometry accordingly. Every displacement is the Three.js scene is interpreted as a tangent vector. We move the observer by following the geodesic in this direction. The method also update the left and right eyes positions. The method should be called at each frame.
Two fake copies of the cameras meant to be passed to the shader as uniforms.
Half the interpupillary distance
True if stereo is off
True if stereo is on
build the GLSL code needed to declare the camera
the shader builder
the side (left of right) (used for stereographic camera)
Turn the stereo mode on or off
Update the fake camera position. Shift the left and right camera from the current position using parallel transport.