Example #1
0
        /// <summary>
        /// Remove ShadowHull
        /// </summary>
        public void RemoveHull()
        {
            LightingEngine LE = ((LightingEngine)Renderer.GetRenderEffect("LightingEngine"));

            LE.RemoveHull(Hull);
            this._Hull = null;
        }
Example #2
0
        /// <summary>
        /// Set ShadowHull of Tile
        /// </summary>
        /// <param name="Size">Size</param>
        /// <param name="Pos">Position</param>
        public void SetRectHull(Vector2 Size, Vector2 Pos)
        {
            ShadowHull H = ShadowHull.CreateRectangle(Size);

            H.Position = Pos;
            LightingEngine LE = ((LightingEngine)Renderer.GetRenderEffect("LightingEngine"));

            if (Hull != null)
            {
                LE.RemoveHull(Hull);
            }
            LE.AddHull(H);
            this._Hull = H;
        }