Exemplo n.º 1
0
        public void ApplyPostprocess(MyPostprocessShadows.Type type, IRtvTexture outTex, IDepthStencil stencil, ICascadeShadowMap csm,
                                     ref MyShadowsSettings settings)
        {
            MyPostprocessShadows postprocess = null;

            switch (type)
            {
            case MyPostprocessShadows.Type.HARD:
                postprocess = m_postprocessHardShadows;
                break;

            case MyPostprocessShadows.Type.SIMPLE:
                postprocess = m_postprocessSimpleShadows;
                break;

            default:
                MyRenderProxy.Assert(false);
                break;
            }
            postprocess.Draw(outTex, stencil, csm, ref settings);
        }
Exemplo n.º 2
0
 public void ApplyPostprocess(MyPostprocessShadows.Type type, IRtvTexture outTex, IDepthStencil stencil, ICascadeShadowMap csm,
     ref MyShadowsSettings settings)
 {
     MyPostprocessShadows postprocess = null;
     switch (type)
     {
         case MyPostprocessShadows.Type.HARD:
             postprocess = m_postprocessHardShadows;
             break;
         case MyPostprocessShadows.Type.SIMPLE:
             postprocess = m_postprocessSimpleShadows;
             break;
         default:
             MyRenderProxy.Assert(false);
             break;
     }
     postprocess.Draw(outTex, stencil, csm, ref settings);
 }