public void Init(int texSize)
            {
                if (m_depthTexture != null)
                    Destroy();

                m_depthTexture = MyManagers.RwTextures.CreateDepth("MySingleShadowmap.DepthTexture", texSize, texSize,
                    Format.R32_Typeless, Format.R32_Float, Format.D32_Float);

                SetPosition(Matrix.Identity);
            }
Example #2
0
            public void Init(int texSize)
            {
                if (m_depthTexture != null)
                {
                    Destroy();
                }

                m_depthTexture = MyManagers.RwTextures.CreateDepth("MySingleShadowmap.DepthTexture", texSize, texSize,
                                                                   Format.R32_Typeless, Format.R32_Float, Format.D32_Float);

                SetPosition(Matrix.Identity);
            }
Example #3
0
        public void DisposeTex(ref IDepthTexture texture)
        {
            if (texture == null)
            {
                return;
            }

            MyDepthTexture textureInternal = (MyDepthTexture)texture;

            if (m_isDeviceInit)
            {
                textureInternal.OnDeviceEnd();
            }

            m_depthTextures.Deallocate(textureInternal);
            texture = null;
        }
Example #4
0
        public void DisposeTex(ref IDepthTexture texture)
        {
            if (texture == null)
                return;

            MyDepthTexture textureInternal = (MyDepthTexture) texture;

            if (m_isDeviceInit)
                textureInternal.OnDeviceEnd();

            m_depthTextures.Deallocate(textureInternal);
            texture = null;
        }