private void GeneralSettingsGUI(SerializedObject so, bool enableRealtimeGI, bool enableBakedGI)
{
this.m_ShowGeneralSettings = EditorGUILayout.FoldoutTitlebar(this.m_ShowGeneralSettings, styles.GeneralGILabel);
if (this.m_ShowGeneralSettings)
{
SerializedProperty property = so.FindProperty("m_GISettings.m_AlbedoBoost");
SerializedProperty property2 = so.FindProperty("m_GISettings.m_IndirectOutputScale");
SerializedProperty prop = so.FindProperty("m_LightmapEditorSettings.m_LightmapParameters");
SerializedProperty property4 = so.FindProperty("m_LightmapEditorSettings.m_LightmapsBakeMode");
bool flag = enableBakedGI || enableRealtimeGI;
EditorGUI.indentLevel++;
using (new EditorGUI.DisabledScope(!flag))
{
EditorGUILayout.IntPopup(property4, this.kModeStrings, this.kModeValues, s_Styles.DirectionalMode, new GUILayoutOption[0]);
if (property4.intValue == 1)
{
EditorGUILayout.HelpBox(s_Styles.NoDirectionalInSM2AndGLES2.text, MessageType.Warning);
}
if (property4.intValue == 2)
{
EditorGUILayout.HelpBox(s_Styles.NoDirectionalSpecularInSM2AndGLES2.text, MessageType.Warning);
}
EditorGUILayout.Slider(property2, 0f, 5f, styles.IndirectOutputScale, new GUILayoutOption[0]);
EditorGUI.BeginChangeCheck();
EditorGUILayout.Slider(property, 1f, 10f, styles.AlbedoBoost, new GUILayoutOption[0]);
if (EditorGUI.EndChangeCheck())
{
Lightmapping.bounceBoost = property.floatValue;
}
if (LightingWindowObjectTab.LightmapParametersGUI(prop, styles.DefaultLightmapParameters, false))
{
this.m_Mode = Mode.ObjectSettings;
}
this.DeveloperBuildEnlightenSettings(so);
}
EditorGUI.indentLevel--;
}
}