您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
47 行
892 B
47 行
892 B
using UnityEngine;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
public class TextureSamplerState
|
|
{
|
|
public enum FilterMode
|
|
{
|
|
Linear,
|
|
Point
|
|
}
|
|
|
|
public enum WrapMode
|
|
{
|
|
Repeat,
|
|
Clamp
|
|
}
|
|
|
|
[SerializeField] private FilterMode m_filter = FilterMode.Linear;
|
|
|
|
public FilterMode filter
|
|
{
|
|
get { return m_filter; }
|
|
set
|
|
{
|
|
if (m_filter == value)
|
|
return;
|
|
|
|
m_filter = value;
|
|
}
|
|
}
|
|
|
|
[SerializeField] private WrapMode m_wrap = WrapMode.Repeat;
|
|
|
|
public WrapMode wrap
|
|
{
|
|
get { return m_wrap; }
|
|
set
|
|
{
|
|
if (m_wrap == value)
|
|
return;
|
|
|
|
m_wrap = value;
|
|
}
|
|
}
|
|
}
|
|
}
|