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

Commit f3e25e9

Browse files
committed
Fixed AO's ambient-only toggle not showing in the inspector
1 parent 3369f72 commit f3e25e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PostProcessing/Editor/Effects/AmbientOcclusionEditor.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ public override void OnInspectorGUI()
6565
}
6666

6767
PropertyField(m_Color);
68+
PropertyField(m_AmbientOnly);
6869

69-
if (Camera.main != null && Camera.main.actualRenderingPath == RenderingPath.DeferredShading && Camera.main.allowHDR)
70-
PropertyField(m_AmbientOnly);
70+
if (m_AmbientOnly.overrideState.boolValue && m_AmbientOnly.value.boolValue && !RuntimeUtilities.scriptableRenderPipelineActive)
71+
EditorGUILayout.HelpBox("Ambient-only only works with cameras rendering in Deferred + HDR", MessageType.Info);
7172
}
7273
}
7374
}

0 commit comments

Comments
 (0)