Add Global Illumination options to PostFx Settings
This commit is contained in:
@@ -110,6 +110,25 @@ namespace FlaxEditor.CustomEditors.Dedicated
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Editor for <see cref="GlobalIlluminationSettings"/> type.
|
||||
/// </summary>
|
||||
[CustomEditor(typeof(GlobalIlluminationSettings)), DefaultEditor]
|
||||
sealed class GlobalIlluminationSettingsEditor : PostProcessSettingsEditor
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override int OverrideFlags
|
||||
{
|
||||
get => (int)((GlobalIlluminationSettings)Values[0]).OverrideFlags;
|
||||
set
|
||||
{
|
||||
var settings = (GlobalIlluminationSettings)Values[0];
|
||||
settings.OverrideFlags = (GlobalIlluminationSettingsOverride)value;
|
||||
SetValue(settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Editor for <see cref="BloomSettings"/> type.
|
||||
/// </summary>
|
||||
|
||||
@@ -72,6 +72,14 @@ namespace FlaxEditor.Windows
|
||||
set => Graphics.GlobalSDFQuality = value;
|
||||
}
|
||||
|
||||
[DefaultValue(Quality.High)]
|
||||
[EditorOrder(1290), EditorDisplay("Quality"), Tooltip("The Global Illumination quality. Controls the quality of the GI effect.")]
|
||||
public Quality GIQuality
|
||||
{
|
||||
get => Graphics.GIQuality;
|
||||
set => Graphics.GIQuality = value;
|
||||
}
|
||||
|
||||
[DefaultValue(Quality.Medium)]
|
||||
[EditorOrder(1300), EditorDisplay("Quality", "Shadows Quality"), Tooltip("The shadows quality.")]
|
||||
public Quality ShadowsQuality
|
||||
|
||||
Reference in New Issue
Block a user