浏览代码

Fixes

- Change Comparison node to Vec1 inputs
- Change Branch node logic to avoid another if statement
/main
Matt Dean 7 年前
当前提交
e7ccc01e
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Utility/Logic/BranchNode.cs
  2. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Utility/Logic/ComparisonNode.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Utility/Logic/BranchNode.cs


return
@"
{
Out = Predicate == 1 ? True : False;
Out = (Predicate * True) + abs((Predicate - 1) * False);
}
";
}

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Utility/Logic/ComparisonNode.cs


}
static string Unity_Comparison_Equal(
[Slot(0, Binding.None)] DynamicDimensionVector A,
[Slot(1, Binding.None)] DynamicDimensionVector B,
[Slot(0, Binding.None)] Vector1 A,
[Slot(1, Binding.None)] Vector1 B,
[Slot(2, Binding.None)] out Boolean Out)
{
return

正在加载...
取消
保存