Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Calculate unity_StereoScaleOffset in C#

Discussion in 'AR/VR (XR) Discussion' started by larsbertram1, Sep 18, 2019.

  1. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,898
    Is there a way to calculate unity_StereoScaleOffset in C#?
    i am using DrawMeshNow in OnPreCull or OnPreRender where unity_StereoScaleOffset is simply set to (1,1,0,0), which does not let me scale the textures for the left and right eye properly.