コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: XRLayout.cs プロジェクト: LS122800/ProjectEntropy
        internal XRPass CreatePass(XRPassCreateInfo passCreateInfo)
        {
            XRPass pass = XRPass.Create(passCreateInfo);

            xrSystem.AddPassToFrame(pass);
            return(pass);
        }