FogModel.cs 896 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. namespace UnityEngine.PostProcessing
  3. {
  4. [Serializable]
  5. public class FogModel : PostProcessingModel
  6. {
  7. [Serializable]
  8. public struct Settings
  9. {
  10. [Tooltip("Should the fog affect the skybox?")]
  11. public bool excludeSkybox;
  12. public static Settings defaultSettings
  13. {
  14. get
  15. {
  16. return new Settings
  17. {
  18. excludeSkybox = true
  19. };
  20. }
  21. }
  22. }
  23. [SerializeField]
  24. Settings m_Settings = Settings.defaultSettings;
  25. public Settings settings
  26. {
  27. get { return m_Settings; }
  28. set { m_Settings = value; }
  29. }
  30. public override void Reset()
  31. {
  32. m_Settings = Settings.defaultSettings;
  33. }
  34. }
  35. }