浏览代码

Merge branch 'master' of github.com:stramit/MaterialGraph

/main
Peter Bay Bastian 8 年前
当前提交
42eb0e0c
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MaterialSlot.cs
  2. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/PropertyGenerator.cs

5
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MaterialSlot.cs


public class MaterialSlotDefaultInput : MaterialSlot, IGenerateDefaultInput
{
public MaterialSlotDefaultInput() : base()
{
}
public MaterialSlotDefaultInput(int slotId, string displayName, string shaderOutputName, SlotType slotType, SlotValueType valueType, INode _defaultNode, int _defaultSlotID)
: base(slotId, displayName, shaderOutputName, slotType, valueType, Vector4.zero)
{

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/PropertyGenerator.cs


public void AddShaderProperty(PropertyChunk chunk)
{
if (m_Properties.Any(x => x.propertyName == chunk.propertyName))
return;
m_Properties.Add(chunk);
}

正在加载...
取消
保存