예제 #1
0
        public override void TickRender(CSwapChain swapChain)
        {
            base.TickRender(SwapChain);

            var RHICtx = EngineNS.CEngine.Instance.RenderContext;

            if (RHICtx == null)
            {
                return;
            }

            //RHICtx.BindCurrentSwapChain(mSwapChain);

            //shadow ssm;
            mSSM.TickRender(RHICtx);

            mForwardBasePass.TickRender(RHICtx);

            //post effect;
            mMobileAO.TickRender(RHICtx);
            if (CEngine.EnableBloom == true)
            {
                mBloomMobile.TickRender(RHICtx);
            }

            mSunShaftMobile.TickRender(RHICtx);

            mCopyPostprocessPass.TickRender(RHICtx);

            swapChain.Present();
        }
예제 #2
0
        public override void TickRender(CSwapChain swapChain)
        {
            var RHICtx = EngineNS.CEngine.Instance.RenderContext;

            //shadow ssm;
            mSSM.TickRender(RHICtx);

            mForwardBasePass.TickRender(RHICtx);

            //post effect;
            mMobileAO.TickRender(RHICtx);
            if (CEngine.EnableBloom == true)
            {
                mBloomMobile.TickRender(RHICtx);
            }

            mSunShaftMobile.TickRender(RHICtx);

            mCopyPostprocessPass.TickRender(RHICtx);

            base.TickRender(null);
        }