|
|
|
|
|
|
|
|
|
|
private MaterialProperty albedoColor; |
|
|
|
private MaterialProperty albedoMap; |
|
|
|
|
|
|
|
|
|
|
|
private MaterialProperty smoothness; |
|
|
|
private MaterialProperty smoothnessScale; |
|
|
|
private MaterialProperty smoothnessMapChannel; |
|
|
|
|
|
|
workflowMode = FindProperty("_WorkflowMode", properties); |
|
|
|
albedoColor = FindProperty("_Color", properties); |
|
|
|
albedoMap = FindProperty("_MainTex", properties); |
|
|
|
|
|
|
|
|
|
|
|
smoothness = FindProperty("_Glossiness", properties); |
|
|
|
smoothnessScale = FindProperty("_GlossMapScale", properties, false); |
|
|
|
smoothnessMapChannel = FindProperty("_SmoothnessTextureChannel", properties, false); |
|
|
|
|
|
|
// Detect any changes to the material
|
|
|
|
EditorGUI.BeginChangeCheck(); |
|
|
|
{ |
|
|
|
DoPopup(Styles.workflowModeText, workflowMode, Styles.workflowNames); |
|
|
|
|
|
|
|
DoPopup(Styles.workflowModeText, workflowMode, Styles.workflowNames); |
|
|
|
|
|
|
|
DoAlbedoArea(); |
|
|
|
DoMetallicSpecularArea(); |
|
|
|