您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
36 行
816 B
36 行
816 B
using System;
|
|
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()
|
|
{
|
|
return string.Format(@"
|
|
#ifdef UNITY_COMPILER_HLSL
|
|
SamplerState {0};
|
|
#endif", referenceName);
|
|
}
|
|
|
|
public override PreviewProperty GetPreviewMaterialProperty()
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|