コード例 #1
0
        public override void Render(RenderTarget rt, RenderMode renderMode = RenderMode.BASE)
        {
            Material mat = GetMaterial(renderMode);

            if (mat == null)
            {
                return;
            }

            OnDrawSprites(_spriteBatch);

            RenderStates states = new RenderStates(mat.mainTexture);

            states.BlendMode = mat.blendMode;
            states.Shader    = mat.shader;
            _spriteBatch.Display(rt, states);

            _spriteBatch.Flush();
        }