Comment on page
Quick API
This API is all you need to utilize Lightfield displays. Our modules may have public functions but are intended to be used through their prefab or component GUI.
Lightfield mode can be changed using the LeiaDisplay Instance.
using LeiaLoft;
LeiaDisplay.Instance.DesiredLightfieldMode = LeiaDisplay.LightfieldMode.Off;
LeiaDisplay.Instance.DesiredLightfieldMode = LeiaDisplay.LightfieldMode.On;
Editor: Use the inspector to change the Convergence Distance variable on the LeiaCamera component attached to a Camera GameObject.
using LeiaLoft;
LeiaCamera _LeiaCam = LeiaCamera.Instance;
_LeiaCam.ConvergenceDistance = 10f;
Editor: Use the inspector to change the Convergence Distance variable on the LeiaCamera component that is attached to a Camera GameObject.
using LeiaLoft;
LeiaCamera _LeiaCam = LeiaCamera.Instance;
_LeiaCam.BaselineScaling = 0.3f;
Last modified 7mo ago