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); }
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); }