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

Commit

Permalink
Fixed wrong warning in the color grading editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Chman committed Nov 18, 2017
1 parent 60793fa commit 3710239
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PostProcessing/Editor/Effects/ColorGradingEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ public override void OnInspectorGUI()
{
if (QualitySettings.activeColorSpace == ColorSpace.Gamma)
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);
}

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

if (gradingMode == GradingMode.LowDefinitionRange)
Expand Down

0 comments on commit 3710239

Please sign in to comment.