浏览代码

Merge pull request #342 from Unity-Technologies/fix-vector1-node

Fixed an issue where vector 1 node was not evaluating properly.
/main
GitHub 7 年前
当前提交
9e68ec0c
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 10
      com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector1Node.cs

10
com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector1Node.cs


public void GenerateNodeCode(ShaderGenerator visitor, GenerationMode generationMode)
{
if (generationMode.IsPreview())
return;
visitor.AddShaderChunk(precision + " " + GetVariableNameForNode() + " = " + inputValue + ";", false);
}
public override string GetVariableNameForSlot(int slotId)
{
return GetVariableNameForNode();
visitor.AddShaderChunk(precision + " " + GetVariableNameForSlot(OutputSlotId) + " = " + inputValue + ";", false);
}
public IShaderProperty AsShaderProperty()

正在加载...
取消
保存