浏览代码

Moved standard shader workflow mode to top as it seems more natural.

/tag-1.1.4-preview
Felipe Lira 7 年前
当前提交
6330fd47
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 7
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Editor/ShaderGUI/LightweightStandardGUI.cs

7
ScriptableRenderPipeline/LightweightPipeline/LWRP/Editor/ShaderGUI/LightweightStandardGUI.cs


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();

正在加载...
取消
保存