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

Commit 3710239

Browse files
committed
Fixed wrong warning in the color grading editor
1 parent 60793fa commit 3710239

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PostProcessing/Editor/Effects/ColorGradingEditor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ public override void OnInspectorGUI()
181181
{
182182
if (QualitySettings.activeColorSpace == ColorSpace.Gamma)
183183
EditorGUILayout.HelpBox("ColorSpace in project settings is set to Gamma, HDR color grading won't look correct. Switch to Linear or use LDR color grading mode instead.", MessageType.Warning);
184+
}
184185

185-
if (m_GradingMode.overrideState.boolValue)
186-
{
187-
if (!SystemInfo.supports3DRenderTextures || !SystemInfo.supportsComputeShaders)
188-
EditorGUILayout.HelpBox("HDR color grading requires compute shader & 3D render texture support.", MessageType.Warning);
189-
}
186+
if (m_GradingMode.overrideState.boolValue && gradingMode == GradingMode.External)
187+
{
188+
if (!SystemInfo.supports3DRenderTextures || !SystemInfo.supportsComputeShaders)
189+
EditorGUILayout.HelpBox("HDR color grading requires compute shader & 3D render texture support.", MessageType.Warning);
190190
}
191191

192192
if (gradingMode == GradingMode.LowDefinitionRange)

0 commit comments

Comments
 (0)