49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.
|
|
|
|
namespace FlaxEditor.Content.Settings
|
|
{
|
|
/// <summary>
|
|
/// The base class for all the settings assets.
|
|
/// </summary>
|
|
public abstract class SettingsBase
|
|
{
|
|
}
|
|
|
|
partial class GraphicsSettings
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="GraphicsSettings"/>.
|
|
/// </summary>
|
|
public GraphicsSettings()
|
|
{
|
|
// Initialize PostFx settings with default options (C# structs doesn't support it)
|
|
PostProcessSettings = FlaxEngine.PostProcessSettings.Default;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace FlaxEngine
|
|
{
|
|
partial struct PostProcessSettings
|
|
{
|
|
private static PostProcessSettings _default;
|
|
|
|
/// <summary>
|
|
/// The default <see cref="PostProcessSettings"/>.
|
|
/// </summary>
|
|
public static PostProcessSettings Default
|
|
{
|
|
get
|
|
{
|
|
if (!_default.AmbientOcclusion.Enabled)
|
|
{
|
|
object obj = _default;
|
|
Utils.InitStructure(obj, typeof(PostProcessSettings));
|
|
_default = (PostProcessSettings)obj;
|
|
}
|
|
return _default;
|
|
}
|
|
}
|
|
}
|
|
}
|