You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
833 B

  1. using UnityEngine.PostProcessing;
  2. namespace UnityEditor.PostProcessing
  3. {
  4. using Settings = FogModel.Settings;
  5. [PostProcessingModelEditor(typeof(FogModel))]
  6. public class FogModelEditor : PostProcessingModelEditor
  7. {
  8. SerializedProperty m_ExcludeSkybox;
  9. public override void OnEnable()
  10. {
  11. m_ExcludeSkybox = FindSetting((Settings x) => x.excludeSkybox);
  12. }
  13. public override void OnInspectorGUI()
  14. {
  15. EditorGUILayout.HelpBox("This effect adds fog compatibility to the deferred rendering path; enabling it with the forward rendering path won't have any effect. Actual fog settings should be set in the Lighting panel.", MessageType.Info);
  16. EditorGUILayout.PropertyField(m_ExcludeSkybox);
  17. EditorGUI.indentLevel--;
  18. }
  19. }
  20. }