浏览代码

Merge pull request #264 from Unity-Technologies/node-bugfixes

Minor node fixes
/main
GitHub 7 年前
当前提交
5ba70535
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 4
      com.unity.shadergraph/Editor/Data/Nodes/Math/Vector/DotProductNode.cs
  2. 2
      com.unity.shadergraph/Editor/Data/Nodes/Utility/Logic/BranchNode.cs

4
com.unity.shadergraph/Editor/Data/Nodes/Math/Vector/DotProductNode.cs


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

2
com.unity.shadergraph/Editor/Data/Nodes/Utility/Logic/BranchNode.cs


return
@"
{
Out = (Predicate * True) + abs((Predicate - 1) * False);
Out = lerp(False, True, Predicate);
}
";
}
正在加载...
取消
保存