using System; using UnityEngine; namespace UnityEditor.ShaderGraph { [Serializable] public abstract class MatrixShaderProperty : AbstractShaderProperty { 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); } } }