File tree Expand file tree Collapse file tree
OSVR-Unity/Assets/OSVRUnity/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,12 +29,17 @@ namespace OSVR
2929 namespace Unity
3030 {
3131 //This class is responsible for rendering for a VREye.
32+ [ RequireComponent ( typeof ( Camera ) ) ]
3233 public class VRSurface : MonoBehaviour
3334 {
3435 private Camera _camera ;
3536 private K1RadialDistortion _distortionEffect ;
37+ private uint _surfaceIndex ; //index in the eye's VRSurface array
38+ private VREye _eye ; //the eye that this surface controls rendering for
3639
3740 public Camera Camera { get { return _camera ; } set { _camera = value ; } }
41+ public uint SurfaceIndex { get { return _surfaceIndex ; } set { _surfaceIndex = value ; } }
42+ public VREye Eye { get { return _eye ; } set { _eye = value ; } }
3843
3944 [ HideInInspector ]
4045 public K1RadialDistortion DistortionEffect
You can’t perform that action at this time.
0 commit comments