예제 #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);
        }
예제 #2
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);
        }