public override void OnInspectorGUI() { EditorGUILayout.HelpBox("This effect adds fog compatibility to the deferred rendering path; Allows to override fog color with gradient; Rest of fog settings should be set in the Lighting panel.", MessageType.Info); EditorGUILayout.PropertyField(m_ExcludeSkybox, EditorGUIHelper.GetContent("Exclude Skybox (deferred only)")); EditorGUILayout.PropertyField(m_TopColor, EditorGUIHelper.GetContent("Top Fog Color (deferred only)")); EditorGUILayout.PropertyField(m_MidColor, EditorGUIHelper.GetContent("Mid Fog Color (deferred only)")); EditorGUILayout.PropertyField(m_BottomColor, EditorGUIHelper.GetContent("Bottom Fog Color (deferred only)")); EditorGUILayout.PropertyField(m_Middle, EditorGUIHelper.GetContent("Blend factor (deferred only)")); float min = m_Min.floatValue; float max = m_Max.floatValue; EditorGUILayout.MinMaxSlider( EditorGUIHelper.GetContent("Gradient size | Values between which middle section is placed."), ref min, ref max, 0.001f, 0.999f ); m_Min.floatValue = Mathf.Min(min, max - 0.001f); m_Max.floatValue = Mathf.Max(max, min + 0.001f); }