43 lines
647 B
C#
43 lines
647 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace UnityEngine.PostProcessing
|
|
{
|
|
[Serializable]
|
|
public class DitheringModel : PostProcessingModel
|
|
{
|
|
[Serializable]
|
|
[StructLayout(LayoutKind.Sequential, Size = 1)]
|
|
public struct Settings
|
|
{
|
|
public static Settings defaultSettings
|
|
{
|
|
get
|
|
{
|
|
return default(Settings);
|
|
}
|
|
}
|
|
}
|
|
|
|
[SerializeField]
|
|
private Settings m_Settings = Settings.defaultSettings;
|
|
|
|
public Settings settings
|
|
{
|
|
get
|
|
{
|
|
return m_Settings;
|
|
}
|
|
set
|
|
{
|
|
m_Settings = value;
|
|
}
|
|
}
|
|
|
|
public override void Reset()
|
|
{
|
|
m_Settings = Settings.defaultSettings;
|
|
}
|
|
}
|
|
}
|