Exemple #1
0
        public void RecalculateGeometry()
        {
            Geom = new RhysGeom();

            Geom.CellHeight = CellHeight;
            Geom.CellWidth  = CellWidth;
            Geom.CellYScale = CellScale;

            Geom.Process(City);
            Geom.CreateBuffer(GameFacade.GraphicsDevice);


            lightDirection = new Vector3((City.Width * CellWidth), (City.Height * CellHeight), -400f);
        }
        public void RecalculateGeometry()
        {
            Geom = new RhysGeom();

            Geom.CellHeight = CellHeight;
            Geom.CellWidth = CellWidth;
            Geom.CellYScale = CellScale;

            Geom.Process(City);
            Geom.CreateBuffer(GameFacade.GraphicsDevice);

            lightDirection = new Vector3((City.Width * CellWidth), (City.Height * CellHeight), -400f);
        }