public void Recall(DirLight light) { light.Ambient = m_ambient; light.Specular = m_specular; light.Diffuse = m_diffuse; }
private void SetGlobalDiffuseComponent(DirLight activeDirLight, string address, object data) { if (activeDirLight == null) return; Color origColor = activeDirLight.Diffuse; m_settingGlobalLighting = true; m_domNode.As<ITransactionContext>().DoTransaction(() => activeDirLight.Diffuse = ReplaceComponent(origColor, address, data), "OSC Input".Localize("The name of a command")); m_settingGlobalLighting = false; m_designView.ActiveView.Invalidate(); }
public LightingInfo(DirLight light) { m_ambient = light.Ambient; m_specular = light.Specular; m_diffuse = light.Diffuse; }