Beispiel #1
0
        public IGraphicsPipelineNode Prep()
        {
            IGraphicsService graphicsService = GameService.GetService <IGraphicsService>();

            graphicsService
            .SetTarget(TargetID)
            .SetActiveEffect(ActiveEffect)
            .SetDepthState(DepthState);
            if (ClearColor != null)
            {
                graphicsService.GD.Clear(ClearColor.Value);
            }
            return(this);
        }