您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
52 行
985 B
52 行
985 B
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
[Serializable]
|
|
class TextureSamplerState
|
|
{
|
|
public enum FilterMode
|
|
{
|
|
Linear,
|
|
Point,
|
|
Trilinear
|
|
}
|
|
|
|
public enum WrapMode
|
|
{
|
|
Repeat,
|
|
Clamp,
|
|
Mirror,
|
|
MirrorOnce
|
|
}
|
|
|
|
[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;
|
|
}
|
|
}
|
|
}
|
|
}
|