Fix deprecation warnings
This commit is contained in:
@@ -1844,7 +1844,7 @@ API_STRUCT() struct FLAXENGINE_API ScreenSpaceReflectionsSettings : ISerializabl
|
||||
/// The intensity of the temporal effect. Lower values produce reflections faster, but more noise.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="Limit(0, 20.0f, 0.5f), EditorOrder(55), PostProcessSetting((int)ScreenSpaceReflectionsSettingsOverride.TemporalScale)")
|
||||
DEPRECATED("TemporalScale of SSR is unsued now.") float TemporalScale = 8.0f;
|
||||
DEPRECATED("TemporalScale of SSR is unsued now.") float TemporalScale;
|
||||
|
||||
/// <summary>
|
||||
/// Defines how quickly reflections blend between the reflection in the current frame and the history buffer. Lower values produce reflections faster, but with more jittering. If the camera in your game doesn't move much, we recommend values closer to 1.
|
||||
@@ -1852,6 +1852,18 @@ API_STRUCT() struct FLAXENGINE_API ScreenSpaceReflectionsSettings : ISerializabl
|
||||
API_FIELD(Attributes="Limit(0.05f, 1.0f, 0.01f), EditorOrder(60), PostProcessSetting((int)ScreenSpaceReflectionsSettingsOverride.TemporalResponse)")
|
||||
float TemporalResponse = 0.8f;
|
||||
|
||||
public:
|
||||
// Ignore deprecation warnings in defaults
|
||||
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
||||
ScreenSpaceReflectionsSettings()
|
||||
{
|
||||
TemporalScale = 8.0f;
|
||||
}
|
||||
ScreenSpaceReflectionsSettings(const ScreenSpaceReflectionsSettings& other) = default;
|
||||
ScreenSpaceReflectionsSettings(ScreenSpaceReflectionsSettings&& other) = default;
|
||||
ScreenSpaceReflectionsSettings& operator=(const ScreenSpaceReflectionsSettings& other) = default;
|
||||
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
public:
|
||||
/// <summary>
|
||||
/// Blends the settings using given weight.
|
||||
|
||||
Reference in New Issue
Block a user