static void DrawFilterSettingField(SerializedProperty gaussSetting, SerializedProperty atrousSetting, GUIContent gaussLabel, GUIContent atrousLabel, LightmapEditorSettings.FilterType type) { if (type == LightmapEditorSettings.FilterType.None) { return; } GUILayout.BeginHorizontal(); if (type == LightmapEditorSettings.FilterType.Gaussian) { EditorGUILayout.IntSlider(gaussSetting, 0, 5, gaussLabel); GUILayout.Label(" texels", Styles.LabelStyle); } else if (type == LightmapEditorSettings.FilterType.ATrous) { EditorGUILayout.Slider(atrousSetting, 0.0f, 2.0f, atrousLabel); GUILayout.Label(" sigma", Styles.LabelStyle); } GUILayout.EndHorizontal(); }
private static void DrawFilterSettingField(SerializedProperty gaussSetting, SerializedProperty atrousSetting, GUIContent gaussLabel, GUIContent atrousLabel, LightmapEditorSettings.FilterType type) { if (type != LightmapEditorSettings.FilterType.None) { GUILayout.BeginHorizontal(new GUILayoutOption[0]); if (type == LightmapEditorSettings.FilterType.Gaussian) { EditorGUILayout.IntSlider(gaussSetting, 0, 5, gaussLabel, new GUILayoutOption[0]); GUILayout.Label(" texels", LightingWindowBakeSettings.Styles.LabelStyle, new GUILayoutOption[0]); } else if (type == LightmapEditorSettings.FilterType.ATrous) { EditorGUILayout.Slider(atrousSetting, 0f, 2f, atrousLabel, new GUILayoutOption[0]); GUILayout.Label(" sigma", LightingWindowBakeSettings.Styles.LabelStyle, new GUILayoutOption[0]); } GUILayout.EndHorizontal(); } }