浏览代码

[material graph] Pad v1 -> v4 properly.

/main
Tim Cooper 8 年前
当前提交
93902ec9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/ShaderGenerator.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Util/ShaderGenerator.cs


switch (convertFromType)
{
case ConcreteSlotValueType.Vector1:
return string.Format("half4({0}.x, 0.0, 0.0, 1.0)", rawOutput);
return string.Format("half4({0}, {0}, {0}, 1.0)", rawOutput);
case ConcreteSlotValueType.Vector2:
return string.Format("half4({0}.x, {0}.y, 0.0, 1.0)", rawOutput);
case ConcreteSlotValueType.Vector3:

正在加载...
取消
保存