浏览代码

Missed file

/main
Matt Dean 7 年前
当前提交
25f091c2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      MaterialGraphProject/Assets/NewNodes/Editor/Keep/TransformNode.cs

4
MaterialGraphProject/Assets/NewNodes/Editor/Keep/TransformNode.cs


protected int[] validSlots
{
get { return new[] { InputSlotId, OutputSlotId }; }
get { return new[] {InputSlotId, OutputSlotId}; }
}
protected virtual MaterialSlot GetInputSlot()

visitor.AddShaderChunk("float3x3 tangentTransform = float3x3( worldSpaceTangent, worldSpaceBitangent, worldSpaceNormal);", false);
visitor.AddShaderChunk(string.Format("{0} {1} = {2};",
ConvertConcreteSlotValueTypeToString(precision, FindOutputSlot<MaterialSlot>(OutputSlotId).concreteValueType),
ConvertConcreteSlotValueTypeToString(precision, FindOutputSlot<MaterialSlot>(OutputSlotId).concreteValueType),
GetVariableNameForSlot(OutputSlotId),
transformString), true);
}

正在加载...
取消
保存