void Start() { leftBarrel = LeftCamera.GetComponent <BarrelDistortion>(); rightBarrel = RightCamera.GetComponent <BarrelDistortion>(); centerCullingMask = CenterCamera.cullingMask; arVideo = CenterCamera.GetComponent <UnityARVideo>(); HoloKitCalibration.LoadDefaultCalibration(this); UpdateProjectMatrix(); }
void Start() { leftBarrel = LeftCamera.GetComponent <BarrelDistortion>(); rightBarrel = RightCamera.GetComponent <BarrelDistortion>(); centerCullingMask = CenterCamera.cullingMask; HoloKitCalibration.LoadDefaultCalibration(this); UpdateProjectMatrix(); rectTexture = new Texture2D(1, 1); rectTexture.SetPixel(0, 0, Color.black); rectTexture.Apply(); rectStyle = new GUIStyle(); rectStyle.normal.background = rectTexture; }