namespace XREngine.Rendering.Pipelines.Commands
{
    public class VPRC_RenderMeshesPass : ViewportStateRenderCommand<VPRC_PopRenderArea>
    {
        public int RenderPass { get; set; } = 0;

        protected override void Execute()
        {
            using (Pipeline.State.PushRenderingCamera(Pipeline.State.SceneCamera))
                Pipeline.MeshRenderCommands.Render(RenderPass, Pipeline.State.ShadowPass);
        }
    }
}
