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