浏览代码

Add vertex color input label to bound input type

/main
Jens Holm 7 年前
当前提交
12543f9b
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
      com.unity.shadergraph/Editor/Data/Graphs/VertexColorMaterialSlot.cs

7
com.unity.shadergraph/Editor/Data/Graphs/VertexColorMaterialSlot.cs


using System;
using UnityEditor.Graphing;
using UnityEngine;
using UnityEditor.ShaderGraph.Drawing.Slots;
using UnityEngine.Experimental.UIElements;
namespace UnityEditor.ShaderGraph
{

ShaderStage shaderStage = ShaderStage.Dynamic, bool hidden = false)
: base(slotId, displayName, shaderOutputName, SlotType.Input, Vector3.zero, shaderStage, hidden)
{}
public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView("Vertex Color");
}
public override string GetDefaultValue(GenerationMode generationMode)
{

正在加载...
取消
保存