浏览代码

Add declaration overrides for matrix shader properties

/main
Matt Dean 7 年前
当前提交
e5591143
共有 3 个文件被更改,包括 15 次插入0 次删除
  1. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix2ShaderProperty.cs
  2. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix3ShaderProperty.cs
  3. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix4ShaderProperty.cs

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix2ShaderProperty.cs


get { return PropertyType.Matrix2; }
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return "float2x2 " + referenceName + ";";
}
public override INode ToConcreteNode()
{
return new Matrix2Node

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix3ShaderProperty.cs


get { return PropertyType.Matrix3; }
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return "float3x3 " + referenceName + ";";
}
public override INode ToConcreteNode()
{
return new Matrix3Node

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Matrix4ShaderProperty.cs


get { return PropertyType.Matrix4; }
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return "float4x4 " + referenceName + ";";
}
public override INode ToConcreteNode()
{
return new Matrix4Node

正在加载...
取消
保存