public void Start() { string features = ""; uint renderFeatures = UnityGetRenderFeatureState(); if ((renderFeatures & kPluginExtFeatureMRSAvailable) != 0) { // Maxwell+ features += "MRS "; } if ((renderFeatures & kPluginExtFeatureSLIActive) != 0) { // SLI configuration features += "SLI "; } else if ((renderFeatures & kPluginExtFeatureSPSAvailable) != 0) { // Pascal+ in non SLI configuration features += "SPS LMS"; } print("VRWorks: " + (features.Length > 0 ? features + " detected" : "Not supported or plugin was not initialized properly. If you just started a new project please restart Unity.")); m_TargetSize = 0; m_RenderFeatures = 0; m_MRSParameters = new MRSParameters(); Camera cam = GetComponent<Camera>(); if(cam == null) { // We should be attached to a camera Debug.LogError("VRWorks not attached to camera"); } else { AddCamera(cam); } }
private static extern void UnitySetMRSParameters(ref MRSParameters mrsParams);