FogModel.cs 742 B

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