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

39 行
973 B

using System;
using UnityEditor.Graphing;
using UnityEngine;
namespace UnityEditor.ShaderGraph
{
class SamplerStateShaderProperty : AbstractShaderProperty<TextureSamplerState>
{
public override PropertyType propertyType
{
get { return PropertyType.SamplerState; }
}
public override Vector4 defaultValue
{
get { return new Vector4(); }
}
public override string GetPropertyBlockString()
{
return string.Empty;
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return string.Format(@"SAMPLER2D({0}){1}", referenceName, delimiter);
}
public override PreviewProperty GetPreviewMaterialProperty()
{
return default(PreviewProperty);
}
public override INode ToConcreteNode()
{
return new SamplerStateNode();
}
}
}