private void UpdateShadowCasters()
        {
            var shadowCaster = LunarHorizon.SunPosition(_currentTime);

            OpenGLWindow.TheWorld.Terrain.UpdateShadowcaster(shadowCaster);
            OpenGLWindow.Invalidate();
        }
Example #2
0
 protected void UpdateCurrentTime()
 {
     _currentTime       = new DateTime(dtStartTime.Value.Ticks + (long)(_timeSpan.Ticks * (tbSelectTime.Value / (float)tbSelectTime.Maximum)));
     lbCurrentTime.Text = _currentTime.ToString();
     //UpdateShadowCasters();
     ShadowCaster = LunarHorizon.SunPosition(_currentTime);
     RenderMode   = PatchRenderMode.ShadowCaster;
     pnlTiles.Invalidate();
 }
 void UpdateShadowCasters()
 {
     _sun = LunarHorizon.SunPosition(_currentTime);
     pnlComparison.Invalidate();
 }