コード例 #1
0
        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();
 }