private void GeneralSettingsGUI(SerializedObject so, SerializedProperty enableRealtimeGI, SerializedProperty enableBakedGI)
{
this.m_ShowGeneralSettings = EditorGUILayout.FoldoutTitlebar(this.m_ShowGeneralSettings, LightingWindow.styles.GeneralGILabel);
if (!this.m_ShowGeneralSettings)
{
return;
}
SerializedProperty property = so.FindProperty("m_GISettings.m_AlbedoBoost");
SerializedProperty property2 = so.FindProperty("m_GISettings.m_IndirectOutputScale");
SerializedProperty property3 = so.FindProperty("m_LightmapEditorSettings.m_TextureWidth");
SerializedProperty prop = so.FindProperty("m_LightmapEditorSettings.m_LightmapParameters");
SerializedProperty serializedProperty = so.FindProperty("m_LightmapsMode");
bool flag = enableBakedGI.boolValue || enableRealtimeGI.boolValue;
EditorGUI.BeginDisabledGroup(!flag);
EditorGUI.indentLevel++;
EditorGUILayout.IntPopup(serializedProperty, this.kModeStrings, this.kModeValues, LightingWindow.s_Styles.DirectionalMode, new GUILayoutOption[0]);
if (serializedProperty.intValue == 2)
{
EditorGUILayout.HelpBox(LightingWindow.s_Styles.NoDirectionalSpecularInSM2AndGLES2.text, MessageType.Warning);
}
EditorGUILayout.Slider(property2, 0f, 5f, LightingWindow.styles.IndirectOutputScale, new GUILayoutOption[0]);
EditorGUILayout.Slider(property, 1f, 10f, LightingWindow.styles.AlbedoBoost, new GUILayoutOption[0]);
if (LightingWindowObjectTab.LightmapParametersGUI(prop, LightingWindow.styles.DefaultLightmapParameters))
{
this.m_Mode = LightingWindow.Mode.ObjectSettings;
}
EditorGUILayout.IntPopup(property3, this.kMaxAtlasSizeStrings, this.kMaxAtlasSizeValues, LightingWindow.styles.MaxAtlasSize, new GUILayoutOption[0]);
this.DeveloperBuildEnlightenSettings(so);
EditorGUI.EndDisabledGroup();
EditorGUI.indentLevel--;
}