Beispiel #1
0
 private void ConstantLightPosLabel_CheckedChanged(object sender, EventArgs e)
 {
     if (constantLightPosLabel.Checked)
     {
         lightAnimator = null;
         scene.GlobalData.LightPosition = new Vector3(0, 0, 10000);
         drawingBox.Invalidate();
     }
 }
Beispiel #2
0
 private void AnimateLightPosLabel_CheckedChanged(object sender, EventArgs e)
 {
     if (animateLightPosLabel.Checked)
     {
         lightAnimator = new LightAnimator(scene.Width / 2);
         lightAnimator.StartAnimation();
         animated++;
         drawingBox.Invalidate();
     }
     else
     {
         animated--;
     }
 }