public static VideoStreamTexture Undistorted(int deviceIndex = (int)OpenVR.k_unTrackedDeviceIndex_Hmd) { if (undistorted == null) { undistorted = new VideoStreamTexture[OpenVR.k_unMaxTrackedDeviceCount]; } if (undistorted[deviceIndex] == null) { undistorted[deviceIndex] = new VideoStreamTexture((uint)deviceIndex, true); } return(undistorted[deviceIndex]); }
public static VideoStreamTexture Undistorted(int deviceIndex = (int)OpenVR.k_unTrackedDeviceIndex_Hmd) { if (undistorted == null) undistorted = new VideoStreamTexture[OpenVR.k_unMaxTrackedDeviceCount]; if (undistorted[deviceIndex] == null) undistorted[deviceIndex] = new VideoStreamTexture((uint)deviceIndex, true); return undistorted[deviceIndex]; }