浏览代码

Fixes to Matrix 2 definition

/main
Matt Dean 7 年前
当前提交
5b6fd3d8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix2Node.cs

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix2Node.cs


var sb = new ShaderStringBuilder();
if (!generationMode.IsPreview())
{
sb.AppendLine("{0}3 _{1}_m0 = {0}3 ({2}, {3});", precision, GetVariableNameForNode(),
sb.AppendLine("{0}2 _{1}_m0 = {0}2 ({2}, {3});", precision, GetVariableNameForNode(),
sb.AppendLine("{0}3 _{1}_m1 = {0}3 ({2}, {3});", precision, GetVariableNameForNode(),
sb.AppendLine("{0}2 _{1}_m1 = {0}2 ({2}, {3});", precision, GetVariableNameForNode(),
NodeUtils.FloatToShaderValue(m_Row1.x),
NodeUtils.FloatToShaderValue(m_Row1.y));
}

正在加载...
取消
保存