public void PreRender(bool invisibilidadActivada)
        {
            Invisibilidad.Technique = "DefaultTechnique";
            pOldRT = D3DDevice.GetRenderTarget(0);
            pSurf  = g_pRenderTarget.GetSurfaceLevel(0);
            if (invisibilidadActivada)
            {
                D3DDevice.SetRenderTarget(0, pSurf);
            }
            pOldDS = D3DDevice.DepthStencilSurface;

            if (invisibilidadActivada)
            {
                D3DDevice.DepthStencilSurface = g_pDepthStencil;
            }

            D3DDevice.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.Black, 1.0f, 0);

            pSurf.Dispose();
        }