Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit d4b7b63

Browse files
committed
Added reset history to eye adaptation; Display eye adaptation UI even when not supported
1 parent 6619875 commit d4b7b63

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

PostProcessing/Editor/Models/EyeAdaptationModelEditor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public override void OnInspectorGUI()
3838
if (!GraphicsUtils.supportsDX11)
3939
{
4040
EditorGUILayout.HelpBox("This effect requires support for compute shaders. Enabling it won't do anything on unsupported platforms.", MessageType.Warning);
41-
return;
4241
}
4342

4443
EditorGUILayout.PropertyField(m_LogMin, EditorGUIHelper.GetContent("Histogram Log Min"));

PostProcessing/Runtime/Components/EyeAdaptationComponent.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public override bool active
4040
}
4141
}
4242

43+
public void ResetHistory()
44+
{
45+
m_FirstFrame = true;
46+
}
47+
4348
public override void OnEnable()
4449
{
4550
m_FirstFrame = true;

PostProcessing/Runtime/PostProcessingBehaviour.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ public void ResetTemporalEffects()
345345
{
346346
m_Taa.ResetHistory();
347347
m_MotionBlur.ResetHistory();
348+
m_EyeAdaptation.ResetHistory();
348349
}
349350

350351
#region State management

0 commit comments

Comments
 (0)