DitheringModel.cs 664 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. namespace UnityEngine.PostProcessing
  3. {
  4. [Serializable]
  5. public class DitheringModel : PostProcessingModel
  6. {
  7. [Serializable]
  8. public struct Settings
  9. {
  10. public static Settings defaultSettings
  11. {
  12. get { return new Settings(); }
  13. }
  14. }
  15. [SerializeField]
  16. Settings m_Settings = Settings.defaultSettings;
  17. public Settings settings
  18. {
  19. get { return m_Settings; }
  20. set { m_Settings = value; }
  21. }
  22. public override void Reset()
  23. {
  24. m_Settings = Settings.defaultSettings;
  25. }
  26. }
  27. }