浏览代码

Fixed an issue where vector 1 node was not evaluating properly.

/main
Martin Thorzen 7 年前
当前提交
01126a2f
共有 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()

正在加载...
取消
保存