private void addDirectionalLightToolStripMenuItem_Click(object sender, EventArgs e) { //code to add new directional light var newLight = new LightClass(LightType.Directional); newLight.Direction = new Vector3(0, 0, 0); _renderer.Lights.Add(newLight); AddLightToDropDown(_renderer.Lights.Count, "Directional"); UpdateLightCount(); }
private void addPointLightToolStripMenuItem_Click(object sender, EventArgs e) { //Code to add new point light var newLight = new LightClass(LightType.Point); newLight.Position = new Vector3(0, 0, 0); _renderer.Lights.Add(newLight); AddLightToDropDown(_renderer.Lights.Count, "Point"); UpdateLightCount(); }
private void addPointLightToolStripMenuItem_Click(object sender, EventArgs e) { //Code to add new point light var newLight = new LightClass(LightType.Point); newLight.Position = new Vector3(0, 0, 0); _renderer.Lights.Add(newLight); AddLightToDropDown(_renderer.Lights.Count, "Point"); UpdateLightCount(); }
private void addDirectionalLightToolStripMenuItem_Click(object sender, EventArgs e) { //code to add new directional light var newLight = new LightClass(LightType.Directional); newLight.Direction = new Vector3(0, 0, 0); _renderer.Lights.Add(newLight); AddLightToDropDown(_renderer.Lights.Count, "Directional"); UpdateLightCount(); }