Exemplo n.º 1
0
        private void DrawDepthMask()
        {
            GraphicsDevice.SetRenderTarget(RTDepthMask);
            GraphicsDevice.Clear(new Color(0, 1f, 0, 1f));

            spriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, FXDepthMask, camera.get_transformation(GraphicsDevice));
            drawBatch.DrawDepthMask(spriteBatch);
            spriteBatch.End();
        }