浏览代码

Fixed bug. The Cartesian to Polar Node now outputs a vector 2d.

/main
bfogerty 8 年前
当前提交
04080286
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 11
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs

11
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/UV/CartesianToPolarNode.cs


namespace UnityEngine.MaterialGraph
using UnityEngine.Graphing;
namespace UnityEngine.MaterialGraph
{
[Title("UV/Cartesian To Polar")]
public class CartesianToPolarNode : Function1Input, IGeneratesFunction

protected override MaterialSlot GetInputSlot()
{
return new MaterialSlot(InputSlotId, GetInputSlotName(), kInputSlotShaderName, UnityEngine.Graphing.SlotType.Input, SlotValueType.Vector2, Vector2.zero);
return new MaterialSlot(InputSlotId, GetInputSlotName(), kInputSlotShaderName, SlotType.Input, SlotValueType.Vector2, Vector2.zero);
}
protected override MaterialSlot GetOutputSlot()
{
return new MaterialSlot(OutputSlotId, GetOutputSlotName(), kOutputSlotShaderName, SlotType.Output, SlotValueType.Vector2, Vector2.zero);
}
public void GenerateNodeFunction(ShaderGenerator visitor, GenerationMode generationMode)

正在加载...
取消
保存