Beispiel #1
0
        void OnEnable()
        {
            colorGrading = new ColorGradingSettings
            {
                type     = FindProperty(x => x.colorGrading.type),
                exposure = FindProperty(x => x.colorGrading.exposure),

                logLut = FindProperty(x => x.colorGrading.logLut),

                neutralBlackIn    = FindProperty(x => x.colorGrading.neutralBlackIn),
                neutralWhiteIn    = FindProperty(x => x.colorGrading.neutralWhiteIn),
                neutralBlackOut   = FindProperty(x => x.colorGrading.neutralBlackOut),
                neutralWhiteOut   = FindProperty(x => x.colorGrading.neutralWhiteOut),
                neutralWhiteLevel = FindProperty(x => x.colorGrading.neutralWhiteLevel),
                neutralWhiteClip  = FindProperty(x => x.colorGrading.neutralWhiteClip)
            };

            eyeAdaptation = new EyeAdaptationSettings
            {
                enabled = FindProperty(x => x.eyeAdaptation.enabled),
                showDebugHistogramInGameView = FindProperty(x => x.eyeAdaptation.showDebugHistogramInGameView),

                lowPercent  = FindProperty(x => x.eyeAdaptation.lowPercent),
                highPercent = FindProperty(x => x.eyeAdaptation.highPercent),

                minLuminance         = FindProperty(x => x.eyeAdaptation.minLuminance),
                maxLuminance         = FindProperty(x => x.eyeAdaptation.maxLuminance),
                exposureCompensation = FindProperty(x => x.eyeAdaptation.exposureCompensation),

                adaptationType = FindProperty(x => x.eyeAdaptation.adaptationType),

                speedUp   = FindProperty(x => x.eyeAdaptation.speedUp),
                speedDown = FindProperty(x => x.eyeAdaptation.speedDown),

                logMin = FindProperty(x => x.eyeAdaptation.logMin),
                logMax = FindProperty(x => x.eyeAdaptation.logMax)
            };

            chromaSettings = new ChromaticAberrationSettings
            {
                enabled         = FindProperty(x => x.chromaSettings.enabled),
                spectralTexture = FindProperty(x => x.chromaSettings.spectralTexture),
                intensity       = FindProperty(x => x.chromaSettings.intensity)
            };

            vignetteSettings = new VignetteSettings
            {
                enabled    = FindProperty(x => x.vignetteSettings.enabled),
                color      = FindProperty(x => x.vignetteSettings.color),
                center     = FindProperty(x => x.vignetteSettings.center),
                intensity  = FindProperty(x => x.vignetteSettings.intensity),
                smoothness = FindProperty(x => x.vignetteSettings.smoothness)
            };

            globalDithering = FindProperty(x => x.globalDithering);
        }
Beispiel #2
0
        void OnEnable()
        {
            colorGrading = new ColorGradingSettings()
            {
                type     = serializedObject.FindProperty("colorGrading.type"),
                exposure = serializedObject.FindProperty("colorGrading.exposure"),

                logLut = serializedObject.FindProperty("colorGrading.logLut"),

                neutralBlackIn    = serializedObject.FindProperty("colorGrading.neutralBlackIn"),
                neutralWhiteIn    = serializedObject.FindProperty("colorGrading.neutralWhiteIn"),
                neutralBlackOut   = serializedObject.FindProperty("colorGrading.neutralBlackOut"),
                neutralWhiteOut   = serializedObject.FindProperty("colorGrading.neutralWhiteOut"),
                neutralWhiteLevel = serializedObject.FindProperty("colorGrading.neutralWhiteLevel"),
                neutralWhiteClip  = serializedObject.FindProperty("colorGrading.neutralWhiteClip")
            };

            eyeAdaptation = new EyeAdaptationSettings()
            {
                enabled = serializedObject.FindProperty("eyeAdaptation.enabled"),
                showDebugHistogramInGameView = serializedObject.FindProperty("eyeAdaptation.showDebugHistogramInGameView"),

                lowPercent  = serializedObject.FindProperty("eyeAdaptation.lowPercent"),
                highPercent = serializedObject.FindProperty("eyeAdaptation.highPercent"),

                minLuminance         = serializedObject.FindProperty("eyeAdaptation.minLuminance"),
                maxLuminance         = serializedObject.FindProperty("eyeAdaptation.maxLuminance"),
                exposureCompensation = serializedObject.FindProperty("eyeAdaptation.exposureCompensation"),

                adaptationType = serializedObject.FindProperty("eyeAdaptation.adaptationType"),

                speedUp   = serializedObject.FindProperty("eyeAdaptation.speedUp"),
                speedDown = serializedObject.FindProperty("eyeAdaptation.speedDown"),

                logMin = serializedObject.FindProperty("eyeAdaptation.logMin"),
                logMax = serializedObject.FindProperty("eyeAdaptation.logMax")
            };
        }
 internal static extern void Internal_SetEyeAdaptation(IntPtr obj, ref EyeAdaptationSettings value);
 internal static extern void Internal_GetEyeAdaptation(IntPtr obj, out EyeAdaptationSettings resultAsRef);