浏览代码

Update with cleaning out unused code. And some formatting.

/main
Martin Thorzen 7 年前
当前提交
8f3d14dc
共有 3 个文件被更改,包括 0 次插入13 次删除
  1. 11
      HDPipeline/HDUnlitSubShader.cs
  2. 1
      com.unity.shadergraph/Editor/Data/MasterNodes/PBRMasterNode.cs
  3. 1
      com.unity.shadergraph/Editor/Data/MasterNodes/UnlitMasterNode.cs

11
HDPipeline/HDUnlitSubShader.cs


return resultPass;
}
public IMasterNode owner { get; set; }
public string GetSubshader(IMasterNode inMasterNode, GenerationMode mode)
{
var masterNode = inMasterNode as UnlitMasterNode;

subShader.AddShaderChunk("}", true);
return subShader.GetShaderString(0);
}
public VisualElement CreateSettingsElement()
{
return null;
}
public void UpdateAfterDeserialization()
{
}
}
}

1
com.unity.shadergraph/Editor/Data/MasterNodes/PBRMasterNode.cs


protected override VisualElement CreateCommonSettingsElement()
{
return new PBRSettingsView(this);
//return null;
}
}
}

1
com.unity.shadergraph/Editor/Data/MasterNodes/UnlitMasterNode.cs


public const int AlphaSlotId = 7;
public const int AlphaThresholdSlotId = 8;
[SerializeField]
SurfaceType m_SurfaceType;

正在加载...
取消
保存