Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Camera.SetStereoProjectionMatrices

Switch to Manual
public void SetStereoProjectionMatrices(Matrix4x4 leftMatrix, Matrix4x4 rightMatrix);

Parameters

leftMatrix Projection matrix for the stereo left eye.
rightMatrix Projection matrix for the stereo left eye.

Description

Define the projection matrix for both stereo eye. Only work in 3D flat panel display.

If you use this function, the default "Asymmetric frustum parallel axis projection" will not be apply until you call Camera.ResetStereoProjectionMatrices.