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

            OpenGLWindow.TheWorld.Terrain.UpdateShadowcaster(shadowCaster);
            OpenGLWindow.Invalidate();
        }
예제 #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();
 }
예제 #3
0
 void UpdateShadowCasters()
 {
     _sun = LunarHorizon.SunPosition(_currentTime);
     pnlComparison.Invalidate();
 }