public override void OnInspectorGUI()
        {
            SCPE_GUI.DisplayDocumentationButton("radial-blur");

            SCPE_GUI.DisplaySetupWarning <RadialBlurRenderer>();

            PropertyField(amount);
            PropertyField(iterations);
        }
Exemple #2
0
        public override void OnInspectorGUI()
        {
            SCPE_GUI.DisplayDocumentationButton("black-bars");

            SCPE_GUI.DisplaySetupWarning();

            PropertyField(mode);
            PropertyField(size);
            PropertyField(maxSize);
        }
Exemple #3
0
        public override void OnInspectorGUI()
        {
            SCPE_GUI.DisplayDocumentationButton("blur");

            SCPE_GUI.DisplaySetupWarning <BlackBarsRenderer>();

            PropertyField(mode);
            PropertyField(highQuality);
            PropertyField(amount);
            PropertyField(iterations);
            PropertyField(downscaling);
        }
Exemple #4
0
        public override void OnInspectorGUI()
        {
            SCPE_GUI.DisplayDocumentationButton("ambient-occlusion-2d");

            SCPE_GUI.DisplayVRWarning();

            SCPE_GUI.DisplaySetupWarning <AmbientOcclusion2DRenderer>();

            PropertyField(aoOnly);
            PropertyField(intensity);
            PropertyField(luminanceThreshold);
            PropertyField(distance);
            PropertyField(blurAmount);
            PropertyField(iterations);
            PropertyField(downscaling);
        }
Exemple #5
0
        public override void OnInspectorGUI()
        {
            SCPE_GUI.DisplayDocumentationButton("lut");

            SCPE_GUI.DisplaySetupWarning();

            using (new EditorGUILayout.HorizontalScope())
            {
                GUILayout.FlexibleSpace();

                if (GUILayout.Button(new GUIContent("Open LUT Extracter", EditorGUIUtility.IconContent("d_PreTextureRGB").image,
                                                    "Extract a LUT from the bottom-left corner of a screenshot"),
                                     EditorStyles.miniButton, GUILayout.Height(20f), GUILayout.Width(150f)))
                {
                    LUTExtracterWindow.ShowWindow();
                }

                GUILayout.FlexibleSpace();
            }

            EditorGUILayout.Space();

            CheckLUTImportSettings(lutNear);
            if (mode.value.intValue == 1)
            {
                CheckLUTImportSettings(lutFar);
            }

            PropertyField(mode);
            PropertyField(intensity);
            PropertyField(lutNear, new GUIContent(mode.value.intValue == 0 ? "Look up Texture" : "Near"));
            if (mode.value.intValue == 1)
            {
                PropertyField(lutFar);
                PropertyField(distance);
            }
            PropertyField(invert);
        }
Exemple #6
0
        public override void OnInspectorGUI()
        {
            SCPE_GUI.DisplayDocumentationButton("edge-detection");

            SCPE_GUI.DisplayVRWarning();

            SCPE_GUI.DisplaySetupWarning();

            PropertyField(edgesOnly);

            PropertyField(mode);

            if (mode.overrideState.boolValue)
            {
                EditorGUILayout.BeginHorizontal();
                switch (mode.value.intValue)
                {
                case 0:
                    EditorGUILayout.HelpBox("Checks pixels for differences between geometry normals and their distance from the camera", MessageType.None);
                    break;

                case 1:
                    EditorGUILayout.HelpBox("Same as Depth Normals but also uses vertical sampling for improved accuracy", MessageType.None);
                    break;

                case 2:
                    EditorGUILayout.HelpBox("Draws edges only where neighboring pixels greatly differ in their depth value.", MessageType.None);
                    break;

                case 3:
                    EditorGUILayout.HelpBox("Creates an edge where the luminance value of a pixel differs from its neighbors, past the threshold", MessageType.None);
                    break;
                }
                EditorGUILayout.EndHorizontal();
            }

#if LWRP
            if (mode.value.intValue < 2 && mode.overrideState.boolValue == true && RenderPipelineManager.currentPipeline != null)
            {
                EditorGUILayout.HelpBox("Not supported in LWRP", MessageType.Error);
            }
#endif

            using (new EditorGUILayout.HorizontalScope())
            {
                // Override checkbox
                var overrideRect = GUILayoutUtility.GetRect(17f, 17f, GUILayout.ExpandWidth(false));
                overrideRect.yMin += 4f;
                EditorUtilities.DrawOverrideCheckbox(overrideRect, fadeDistance.overrideState);

                EditorGUILayout.PrefixLabel(fadeDistance.displayName);

                GUILayout.FlexibleSpace();

                fadeDistance.value.floatValue = EditorGUILayout.FloatField(fadeDistance.value.floatValue);

                bool enabled = invertFadeDistance.value.boolValue;
                enabled = GUILayout.Toggle(enabled, "Start", EditorStyles.miniButtonLeft, GUILayout.Width(50f), GUILayout.ExpandWidth(false));
                enabled = !GUILayout.Toggle(!enabled, "End", EditorStyles.miniButtonRight, GUILayout.Width(50f), GUILayout.ExpandWidth(false));

                invertFadeDistance.value.boolValue = enabled;
            }

            if (mode.value.intValue < 2)
            {
                PropertyField(sensitivityDepth);
                PropertyField(sensitivityNormals);
            }
            else if (mode.value.intValue == 2)
            {
                PropertyField(edgeExp);
            }
            else
            {
                // lum based mode
                PropertyField(lumThreshold);
            }

            //Edges
            PropertyField(edgeColor);
            PropertyField(edgeOpacity);
            PropertyField(sampleDist);
            if (mode.value.intValue == 2)
            {
                PropertyField(sobelThin);
            }
        }