浏览代码

Input Part 3

Input/Matrix
Input/Time (WIP)
/main
Matt Dean 7 年前
当前提交
03923b0b
共有 5 个文件被更改,包括 15 次插入15 次删除
  1. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix2Node.cs
  2. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix3Node.cs
  3. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix4Node.cs
  4. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/MatrixCommonNode.cs
  5. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Time/TimeNode.cs

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


namespace UnityEngine.MaterialGraph
{
[Title("Input/Matrix/Matrix 2")]
[Title("Input/Matrix/Matrix 2x2")]
const string kOutputSlotName = "Value";
const string kOutputSlotName = "Out";
[SerializeField]
Vector2 m_Row0;

public Matrix2Node()
{
name = "Matrix2";
name = "Matrix 2x2";
UpdateNodeAfterDeserialization();
}

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix3Node.cs


namespace UnityEngine.MaterialGraph
{
[Title("Input/Matrix/Matrix 3")]
[Title("Input/Matrix/Matrix 3x3")]
const string kOutputSlotName = "Value";
const string kOutputSlotName = "Out";
[SerializeField]
Vector3 m_Row0;

public Matrix3Node()
{
name = "Matrix3";
name = "Matrix 3x3";
UpdateNodeAfterDeserialization();
}

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/Matrix4Node.cs


namespace UnityEngine.MaterialGraph
{
[Title("Input/Matrix/Matrix 4")]
[Title("Input/Matrix/Matrix 4x4")]
const string kOutputSlotName = "Value";
const string kOutputSlotName = "Out";
[SerializeField]
Vector4 m_Row0;

public Matrix4Node()
{
name = "Matrix4";
name = "Matrix 4x4";
UpdateNodeAfterDeserialization();
}

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


WorldToObject
};
[Title("Input/Matrix/CommonMatrix")]
[Title("Input/Matrix/Common Matrix")]
public class MatrixCommonNode : AbstractMaterialNode
{
static Dictionary<CommonMatrixType, string> m_matrixList = new Dictionary<CommonMatrixType, string>

private CommonMatrixType m_matrix = CommonMatrixType.ModelView;
private const int kOutputSlotId = 0;
private const string kOutputSlotName = "Output";
private const string kOutputSlotName = "Out";
public override bool hasPreview { get { return false; } }

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Time/TimeNode.cs


public class TimeNode : AbstractMaterialNode, IMayRequireTime
{
private const string kOutputSlotName = "Time";
private const string kOutputSlotNameX = "Time/20";
private const string kOutputSlotNameY = "Time";
private const string kOutputSlotNameZ = "Time * 2";
private const string kOutputSlotNameW = "Time * 3";
private const string kOutputSlotNameX = "T/20";
private const string kOutputSlotNameY = "T";
private const string kOutputSlotNameZ = "T*2";
private const string kOutputSlotNameW = "T*3";
public const int OutputSlotId = 0;
public const int OutputSlotIdX = 1;

正在加载...
取消
保存