public void SimulateOneFrame() { foreach (var camera in cameras) { for (int passIndex = 0; passIndex < k_PassCount; ++passIndex) { var passCreateInfo = new XRPassCreateInfo { multipassId = 0, cullingPassId = 0, cullingParameters = new ScriptableCullingParameters(), renderTarget = camera.targetTexture, customMirrorView = null }; var xrPass = XRPass.Create(passCreateInfo); for (int viewIndex = 0; viewIndex < k_ViewCount; ++viewIndex) { xrPass.AddViewInternal(new XRView()); } xrSystem.AddPassToFrame(camera, xrPass); } } xrSystem.ReleaseFrame(); }
internal XRPass CreatePass(XRPassCreateInfo passCreateInfo) { XRPass pass = XRPass.Create(passCreateInfo); xrSystem.AddPassToFrame(pass); return(pass); }