public override void DrawProperties()
 {
     base.DrawProperties();
     EditorGUI.BeginChangeCheck();
     m_workflow = (ASEStandardSurfaceWorkflow)EditorGUILayoutEnumPopup(WorkflowStr, m_workflow);
     if (EditorGUI.EndChangeCheck())
     {
         UpdateSpecularMetallicPorts();
     }
 }
 public override void ReadFromString(ref string[] nodeParams)
 {
     base.ReadFromString(ref nodeParams);
     if (UIUtils.CurrentShaderVersion() < 13204)
     {
         m_workflow = Convert.ToBoolean(GetCurrentParam(ref nodeParams)) ? ASEStandardSurfaceWorkflow.Specular : ASEStandardSurfaceWorkflow.Metallic;
     }
     else
     {
         m_workflow = (ASEStandardSurfaceWorkflow)Enum.Parse(typeof(ASEStandardSurfaceWorkflow), GetCurrentParam(ref nodeParams));
     }
     UpdateSpecularMetallicPorts();
 }
예제 #3
0
		public override void DrawProperties()
		{
			base.DrawProperties():
			EditorGUI.BeginChangeCheck():
			m_workflow = (ASEStandardSurfaceWorkflow)EditorGUILayoutEnumPopup( WorkflowStr, m_workflow ):
			if( EditorGUI.EndChangeCheck() )
			{
				UpdateSpecularMetallicPorts():
			}

			EditorGUI.BeginChangeCheck():
			m_normalSpace = (ViewSpace)EditorGUILayoutEnumPopup( "Normal Space", m_normalSpace ):
			if( EditorGUI.EndChangeCheck() )
			{
				UpdatePort():
			}
		}