void DoSpecularMetallicArea(Material material)
{
SpecularMode specularMode = (SpecularMode)material.GetInt("_SpecularMode");
if (specularMode == SpecularMode.BlinnPhong)
{
if (specularMap.textureValue == null)
{
m_MaterialEditor.TexturePropertyTwoLines(Styles.specularMapText, specularMap, specularColor, Styles.smoothnessText, smoothness);
}
else
{
m_MaterialEditor.TexturePropertySingleLine(Styles.specularMapText, specularMap);
m_MaterialEditor.ShaderProperty(reflectanceMin, Styles.reflectanceMinText.text, 2);
m_MaterialEditor.ShaderProperty(reflectanceMax, Styles.reflectanceMaxText.text, 2);
}
}
else if (specularMode == SpecularMode.Metallic)
{
if (metallicMap.textureValue == null)
{
m_MaterialEditor.TexturePropertyTwoLines(Styles.metallicMapText, metallicMap, metallic, Styles.smoothnessText, smoothness);
}
else
{
m_MaterialEditor.TexturePropertySingleLine(Styles.metallicMapText, metallicMap);
}
}
}