您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

29 行
767 B

using System;
using UnityEngine;
namespace UnityEditor.ShaderGraph
{
[Serializable]
public abstract class MatrixShaderProperty : AbstractShaderProperty<Matrix4x4>
{
public override string GetPropertyBlockString()
{
return string.Empty;
}
public override Vector4 defaultValue
{
get { return new Vector4(); }
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return "float4x4 " + referenceName + " = float4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)" + delimiter;
}
public override PreviewProperty GetPreviewMaterialProperty()
{
return default(PreviewProperty);
}
}
}