private void BakedGUI(SerializedObject so, SerializedProperty enableRealtimeGI, SerializedProperty enableBakedGI)
{
this.m_ShowBakeSettings = EditorGUILayout.ToggleTitlebar(this.m_ShowBakeSettings, LightingWindow.styles.BakedGILabel, enableBakedGI);
if (!this.m_ShowBakeSettings)
{
return;
}
SerializedProperty property1 = so.FindProperty("m_LightmapEditorSettings.m_Resolution");
SerializedProperty property2 = so.FindProperty("m_LightmapEditorSettings.m_BakeResolution");
SerializedProperty property3 = so.FindProperty("m_LightmapEditorSettings.m_Padding");
SerializedProperty property4 = so.FindProperty("m_LightmapEditorSettings.m_CompAOExponent");
SerializedProperty property5 = so.FindProperty("m_LightmapEditorSettings.m_AOMaxDistance");
SerializedProperty property6 = so.FindProperty("m_LightmapEditorSettings.m_TextureCompression");
SerializedProperty property7 = so.FindProperty("m_LightmapEditorSettings.m_FinalGather");
SerializedProperty property8 = so.FindProperty("m_LightmapEditorSettings.m_FinalGatherRayCount");
SerializedProperty property9 = so.FindProperty("m_LightmapEditorSettings.m_TextureWidth");
++EditorGUI.indentLevel;
EditorGUI.BeginDisabledGroup(!enableBakedGI.boolValue);
LightingWindow.DrawLightmapResolutionField(property2, LightingWindow.styles.BakeResolution);
GUILayout.BeginHorizontal();
EditorGUILayout.PropertyField(property3, LightingWindow.styles.Padding, new GUILayoutOption[0]);
GUILayout.Label(" texels", LightingWindow.styles.labelStyle, new GUILayoutOption[0]);
GUILayout.EndHorizontal();
EditorGUILayout.PropertyField(property6, LightingWindow.s_Styles.TextureCompression, new GUILayoutOption[0]);
EditorGUILayout.Space();
this.m_ShowIndirectResolution.target = !enableRealtimeGI.boolValue;
if (EditorGUILayout.BeginFadeGroup(this.m_ShowIndirectResolution.faded))
{
LightingWindow.DrawLightmapResolutionField(property1, LightingWindow.styles.IndirectResolution);
EditorGUILayout.Space();
}
EditorGUILayout.EndFadeGroup();
EditorGUILayout.Slider(property4, 0.0f, 10f, LightingWindow.styles.AmbientOcclusion, new GUILayoutOption[0]);
if ((double)property4.floatValue > 0.0)
{
++EditorGUI.indentLevel;
EditorGUILayout.PropertyField(property5, LightingWindow.styles.AOMaxDistance, new GUILayoutOption[0]);
if ((double)property5.floatValue < 0.0)
{
property5.floatValue = 0.0f;
}
--EditorGUI.indentLevel;
}
EditorGUILayout.PropertyField(property7, LightingWindow.s_Styles.FinalGather, new GUILayoutOption[0]);
if (property7.boolValue)
{
++EditorGUI.indentLevel;
EditorGUILayout.PropertyField(property8, LightingWindow.styles.FinalGatherRayCount, new GUILayoutOption[0]);
--EditorGUI.indentLevel;
}
EditorGUILayout.IntPopup(property9, this.kMaxAtlasSizeStrings, this.kMaxAtlasSizeValues, LightingWindow.styles.MaxAtlasSize, new GUILayoutOption[0]);
EditorGUI.EndDisabledGroup();
--EditorGUI.indentLevel;
}