void OnEnable()
        {
            FinalVignetteCommandBuffer effect = (target as FinalVignetteCommandBuffer);

            camera = effect.GetComponent <Camera>();

            SetIcon();
        }
        private void VignetteGUI(FinalVignetteCommandBuffer script)
        {
            EditorGUILayout.MinMaxSlider(vignetteMinMaxLabelContent, ref script.VignetteInnerValue, ref script.VignetteOuterValue, 0.0f, 1.0f);

            script.VignetteFalloff = EditorGUILayout.Slider(vignetteFalloffLinearityLabelContent, script.VignetteFalloff, 1.0f, 10.0f);

            EditorGUILayout.Space();

            EditorGUILayout.MinMaxSlider(vignetteMinMaxDistanceLabelContent, ref script.VignetteInnerValueDistance, ref script.VignetteOuterValueDistance, 0.0f, 2.0f);

            EditorGUILayout.Space();
            script.VignetteMode = (FinalVignette.VignetteModeType)EditorGUILayout.EnumPopup(vignetteModeLabelContent, script.VignetteMode);

            if (script.VignetteMode == FinalVignette.VignetteModeType.CustomColors)
            {
                EditorGUI.indentLevel++;
                script.VignetteInnerColor = EditorGUILayout.ColorField(vignetteInnerColorLabelContent, script.VignetteInnerColor);
                script.VignetteOuterColor = EditorGUILayout.ColorField(vignetteOuterColorLabelContent, script.VignetteOuterColor);
                EditorGUI.indentLevel--;
            }

            EditorGUILayout.Space();

            script.EnableSaturationVignette = EditorGUILayout.Toggle(saturationLabel, script.EnableSaturationVignette);

            EditorGUI.BeginDisabledGroup(!script.EnableSaturationVignette);

            EditorGUI.indentLevel++;
            script.VignetteInnerSaturation = EditorGUILayout.Slider(vignetteInnerSaturationLabelContent, script.VignetteInnerSaturation, 0.0f, 1.0f);
            script.VignetteOuterSaturation = EditorGUILayout.Slider(vignetteOuterSaturationLabelContent, script.VignetteOuterSaturation, 0.0f, 1.0f);
            EditorGUI.indentLevel--;

            EditorGUI.EndDisabledGroup();

            EditorGUILayout.Space();

            script.VignetteCenter = EditorGUILayout.Vector2Field(vignetteCenterLabelContent, script.VignetteCenter);

            EditorGUILayout.BeginHorizontal();
            GUILayout.Space(40.0f);

            if (GUILayout.Button("Reset Center", new GUILayoutOption[] {
                GUILayout.Width(100.0f),
            }))
            {
                script.VignetteCenter.x = script.VignetteCenter.y = 0.5f;
            }

            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();

            script.IsAnamorphicVignette = EditorGUILayout.Toggle(anamorphicLensLabel, script.IsAnamorphicVignette);
            EditorGUILayout.Space();

            script.VignetteDebugEnabled = EditorGUILayout.Toggle("Show Debug Output (Vignette): ", script.VignetteDebugEnabled);
        }