示例#1
0
 public void Recall(DirLight light)
 {
     light.Ambient = m_ambient;
     light.Specular = m_specular;
     light.Diffuse = m_diffuse;
 }
示例#2
0
 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();
 }
示例#3
0
 public LightingInfo(DirLight light)
 {
     m_ambient = light.Ambient;
     m_specular = light.Specular;
     m_diffuse = light.Diffuse;
 }