/// <summary> /// Return the surface color of the shading style. /// </summary> public Color GetSurfaceColor() { if (m_SurfaceColour != null) { return(m_SurfaceColour.GetColor()); } // Default to gray. return(new Color(127, 127, 127)); }
/// <summary> /// Return the specular color of the shading style. /// </summary> public Color GetSpecularColor() { if (m_SpecularColour != null) { return(m_SpecularColour.GetColor()); } if (m_SpecularColourFactor.HasValue) { return(GetSurfaceColor(m_SpecularColourFactor.Value)); } return(GetDefaultColor()); }
/// <summary> /// Return the reflection color of the shading style. /// </summary> public Color GetReflectionColor() { if (m_ReflectionColour != null) { return(m_ReflectionColour.GetColor()); } if (m_ReflectionColourFactor.HasValue) { return(GetSurfaceColor(m_ReflectionColourFactor.Value)); } return(GetDefaultColor()); }
/// <summary> /// Return the diffuse transmission color of the shading style. /// </summary> public Color GetDiffuseTransmissionColor() { if (m_DiffuseTransmissionColour != null) { return(m_DiffuseTransmissionColour.GetColor()); } if (m_DiffuseTransmissionColourFactor.HasValue) { return(GetSurfaceColor(m_DiffuseTransmissionColourFactor.Value)); } return(GetDefaultColor()); }