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

Commit 4f2434e

Browse files
committed
Renamed ColorBlindness to ColorBlindnessType
1 parent 51ec317 commit 4f2434e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

PostProcessing/Editor/PostProcessDebugEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void RebuildProperties()
5252

5353
m_MotionColorIntensity = m_LayerObject.FindProperty("debugLayer.overlaySettings.motionColorIntensity");
5454
m_MotionGridSize = m_LayerObject.FindProperty("debugLayer.overlaySettings.motionGridSize");
55-
m_ColorBlindness = m_LayerObject.FindProperty("debugLayer.overlaySettings.colorBlindness");
55+
m_ColorBlindness = m_LayerObject.FindProperty("debugLayer.overlaySettings.colorBlindnessType");
5656
m_ColorBlindnessStrength = m_LayerObject.FindProperty("debugLayer.overlaySettings.colorBlindnessStrength");
5757
}
5858

PostProcessing/Runtime/PostProcessDebugLayer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public enum DebugOverlay
1818
DepthOfField
1919
}
2020

21-
public enum ColorBlindness
21+
public enum ColorBlindnessType
2222
{
2323
Deuteranopia,
2424
Protanopia,
@@ -58,7 +58,7 @@ public class OverlaySettings
5858
[Range(4, 128)]
5959
public int motionGridSize = 64;
6060

61-
public ColorBlindness colorBlindness = ColorBlindness.Deuteranopia;
61+
public ColorBlindnessType colorBlindnessType = ColorBlindnessType.Deuteranopia;
6262

6363
[Range(0f, 1f)]
6464
public float colorBlindnessStrength = 1f;
@@ -227,7 +227,7 @@ internal void RenderSpecialOverlays(PostProcessRenderContext context)
227227
{
228228
var sheet = context.propertySheets.Get(context.resources.shaders.debugOverlays);
229229
sheet.properties.SetVector(ShaderIDs.Params, new Vector4(overlaySettings.colorBlindnessStrength, 0f, 0f, 0f));
230-
PushDebugOverlay(context.command, context.source, sheet, 4 + (int)overlaySettings.colorBlindness);
230+
PushDebugOverlay(context.command, context.source, sheet, 4 + (int)overlaySettings.colorBlindnessType);
231231
}
232232
}
233233

0 commit comments

Comments
 (0)