Example #1
0
        public override void OnEnable()
        {
            base.OnEnable();

            m_CommonUIElementsMask = (uint)SkySettingsUIElement.UpdateMode
                                     | (uint)SkySettingsUIElement.SkyIntensity;

            var o = new PropertyFetcher <GradientSky>(serializedObject);

            m_Bottom             = Unpack(o.Find(x => x.bottom));
            m_Middle             = Unpack(o.Find(x => x.middle));
            m_Top                = Unpack(o.Find(x => x.top));
            m_GradientMultiplier = Unpack(o.Find(x => x.gradientDiffusion));
        }
Example #2
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <Bloom>(serializedObject);

            m_Threshold            = Unpack(o.Find(x => x.threshold));
            m_Intensity            = Unpack(o.Find(x => x.intensity));
            m_Scatter              = Unpack(o.Find(x => x.scatter));
            m_Clamp                = Unpack(o.Find(x => x.clamp));
            m_Tint                 = Unpack(o.Find(x => x.tint));
            m_HighQualityFiltering = Unpack(o.Find(x => x.highQualityFiltering));
            m_Downsample           = Unpack(o.Find(x => x.downscale));
            m_MaxIterations        = Unpack(o.Find(x => x.maxIterations));
            m_DirtTexture          = Unpack(o.Find(x => x.dirtTexture));
            m_DirtIntensity        = Unpack(o.Find(x => x.dirtIntensity));
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <ChannelMixer>(serializedObject);

            m_RedOutRedIn     = Unpack(o.Find(x => x.redOutRedIn));
            m_RedOutGreenIn   = Unpack(o.Find(x => x.redOutGreenIn));
            m_RedOutBlueIn    = Unpack(o.Find(x => x.redOutBlueIn));
            m_GreenOutRedIn   = Unpack(o.Find(x => x.greenOutRedIn));
            m_GreenOutGreenIn = Unpack(o.Find(x => x.greenOutGreenIn));
            m_GreenOutBlueIn  = Unpack(o.Find(x => x.greenOutBlueIn));
            m_BlueOutRedIn    = Unpack(o.Find(x => x.blueOutRedIn));
            m_BlueOutGreenIn  = Unpack(o.Find(x => x.blueOutGreenIn));
            m_BlueOutBlueIn   = Unpack(o.Find(x => x.blueOutBlueIn));
            m_SelectedChannel = o.Find("m_SelectedChannel");
        }
        public override void OnEnable()
        {
            base.OnEnable();
            var o = new PropertyFetcher <ExponentialFog>(serializedObject);

            m_FogDistance = Unpack(o.Find(x => x.fogDistance));
        }
        void OnEnable()
        {
            m_Volume = target as CustomPassVolume;

            using (var o = new PropertyFetcher <CustomPassVolume>(serializedObject))
            {
                m_SerializedPassVolume = new SerializedPassVolume
                {
                    isGlobal       = o.Find(x => x.isGlobal),
                    injectionPoint = o.Find(x => x.injectionPoint),
                    customPasses   = o.Find(x => x.customPasses),
                };
            }

            CreateReorderableList(m_SerializedPassVolume.customPasses);
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <DiffusionProfileOverride>(serializedObject);

            m_Volume            = (m_Inspector.target as Volume);
            m_DiffusionProfiles = Unpack(o.Find(x => x.diffusionProfiles));
        }
Example #7
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <Vignette>(serializedObject);

            m_Mode  = Unpack(o.Find(x => x.mode));
            m_Mode  = Unpack(o.Find(x => x.mode));
            m_Color = Unpack(o.Find(x => x.color));

            m_Center     = Unpack(o.Find(x => x.center));
            m_Intensity  = Unpack(o.Find(x => x.intensity));
            m_Smoothness = Unpack(o.Find(x => x.smoothness));
            m_Roundness  = Unpack(o.Find(x => x.roundness));
            m_Rounded    = Unpack(o.Find(x => x.rounded));

            m_Mask    = Unpack(o.Find(x => x.mask));
            m_Opacity = Unpack(o.Find(x => x.opacity));
        }
        public override void OnEnable()
        {
            base.OnEnable();

            var o = new PropertyFetcher <Bloom>(serializedObject);

            m_Threshold            = Unpack(o.Find(x => x.threshold));
            m_Intensity            = Unpack(o.Find(x => x.intensity));
            m_Scatter              = Unpack(o.Find(x => x.scatter));
            m_Tint                 = Unpack(o.Find(x => x.tint));
            m_DirtTexture          = Unpack(o.Find(x => x.dirtTexture));
            m_DirtIntensity        = Unpack(o.Find(x => x.dirtIntensity));
            m_HighQualityFiltering = Unpack(o.Find(x => x.highQualityFiltering));
            m_Resolution           = Unpack(o.Find(x => x.resolution));
            m_Prefilter            = Unpack(o.Find(x => x.prefilter));
            m_Anamorphic           = Unpack(o.Find(x => x.anamorphic));
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <DiffusionProfileOverride>(serializedObject);

            m_Volume            = (m_Inspector.target as Volume);
            m_DiffusionProfiles = Unpack(o.Find(x => x.diffusionProfiles));
            var hdAsset = GraphicsSettings.renderPipelineAsset as HDRenderPipelineAsset;
        }
Example #10
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <MotionBlur>(serializedObject);

            m_Intensity           = Unpack(o.Find(x => x.intensity));
            m_SampleCount         = Unpack(o.Find("m_SampleCount"));
            m_MinVelInPixels      = Unpack(o.Find(x => x.minimumVelocity));
            m_MaxVelocityInPixels = Unpack(o.Find(x => x.maximumVelocity));
            m_CameraMVClampMode   = Unpack(o.Find(x => x.specialCameraClampMode));
            m_CameraFullClamp     = Unpack(o.Find(x => x.cameraVelocityClamp));
            m_CameraTransClamp    = Unpack(o.Find(x => x.cameraTranslationVelocityClamp));
            m_CameraRotClamp      = Unpack(o.Find(x => x.cameraRotationVelocityClamp));
            m_DepthCmpScale       = Unpack(o.Find(x => x.depthComparisonExtent));
            m_CameraMotionBlur    = Unpack(o.Find(x => x.cameraMotionBlur));

            base.OnEnable();
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <HDShadowSettings>(serializedObject);

            m_MaxShadowDistance = Unpack(o.Find(x => x.maxShadowDistance));
            m_DirectionalTransmissionMultiplier = Unpack(o.Find(x => x.directionalTransmissionMultiplier));
            m_CascadeShadowSplitCount           = Unpack(o.Find(x => x.cascadeShadowSplitCount));
            m_CascadeShadowSplits[0]            = Unpack(o.Find(x => x.cascadeShadowSplit0));
            m_CascadeShadowSplits[1]            = Unpack(o.Find(x => x.cascadeShadowSplit1));
            m_CascadeShadowSplits[2]            = Unpack(o.Find(x => x.cascadeShadowSplit2));
            m_CascadeShadowBorders[0]           = Unpack(o.Find(x => x.cascadeShadowBorder0));
            m_CascadeShadowBorders[1]           = Unpack(o.Find(x => x.cascadeShadowBorder1));
            m_CascadeShadowBorders[2]           = Unpack(o.Find(x => x.cascadeShadowBorder2));
            m_CascadeShadowBorders[3]           = Unpack(o.Find(x => x.cascadeShadowBorder3));

            (serializedObject.targetObject as HDShadowSettings).InitNormalized(m_State.value == Unit.Percent);
        }
        public override void OnEnable()
        {
            base.OnEnable();

            var o = new PropertyFetcher <HDRISky>(serializedObject);

            m_SkyHDRI = Unpack(o.Find(x => x.skyHDRI));
        }
Example #13
0
        public override void OnEnable()
        {
            base.OnEnable();

            var o = new PropertyFetcher <ScreenSpaceReflection>(serializedObject);

            m_MinSmoothness = Unpack(o.Find(x => x.minSmoothness));
        }
Example #14
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <Bloom>(serializedObject);

            // Marked By Bioum //
            m_IterationCount  = Unpack(o.Find(x => x.iterationCount));
            m_HighQualityBlur = Unpack(o.Find(x => x.highQualityBlur));
            // Marked By Bioum //
            m_Threshold            = Unpack(o.Find(x => x.threshold));
            m_Intensity            = Unpack(o.Find(x => x.intensity));
            m_Scatter              = Unpack(o.Find(x => x.scatter));
            m_Clamp                = Unpack(o.Find(x => x.clamp));
            m_Tint                 = Unpack(o.Find(x => x.tint));
            m_HighQualityFiltering = Unpack(o.Find(x => x.highQualityFiltering));
            m_DirtTexture          = Unpack(o.Find(x => x.dirtTexture));
            m_DirtIntensity        = Unpack(o.Find(x => x.dirtIntensity));
        }
        public override void OnEnable()
        {
            base.OnEnable();

            var o = new PropertyFetcher <ScreenSpaceReflection>(serializedObject);

            m_DeferredProjectionModel = Unpack(o.Find(x => x.deferredProjectionModel));
        }
Example #16
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <CloudLayer>(serializedObject);

            m_Enabled = Unpack(o.Find(x => x.enabled));

            m_CloudMap            = Unpack(o.Find(x => x.cloudMap));
            m_UpperHemisphereOnly = Unpack(o.Find(x => x.upperHemisphereOnly));
            m_Tint = Unpack(o.Find(x => x.tint));
            m_IntensityMultiplier = Unpack(o.Find(x => x.intensityMultiplier));

            m_EnableDistortion = Unpack(o.Find(x => x.enableDistortion));
            m_Procedural       = Unpack(o.Find(x => x.procedural));
            m_Flowmap          = Unpack(o.Find(x => x.flowmap));
            m_ScrollDirection  = Unpack(o.Find(x => x.scrollDirection));
            m_ScrollSpeed      = Unpack(o.Find(x => x.scrollSpeed));
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <ScreenSpaceLighting>(serializedObject);

            m_RayLevel               = Unpack(o.Find(x => x.rayLevel));
            m_RayMinLevel            = Unpack(o.Find(x => x.rayMinLevel));
            m_RayMaxLevel            = Unpack(o.Find(x => x.rayMaxLevel));
            m_RayMaxIterations       = Unpack(o.Find(x => x.rayMaxIterations));
            m_DepthBufferThickness   = Unpack(o.Find(x => x.depthBufferThickness));
            m_ScreenWeightDistance   = Unpack(o.Find(x => x.screenWeightDistance));
            m_RayMaxScreenDistance   = Unpack(o.Find(x => x.rayMaxScreenDistance));
            m_RayBlendScreenDistance = Unpack(o.Find(x => x.rayBlendScreenDistance));
            m_RayMarchBehindObjects  = Unpack(o.Find(x => x.rayMarchBehindObjects));
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <SkySettings>(serializedObject);

            m_SkyExposure             = Unpack(o.Find(x => x.exposure));
            m_SkyMultiplier           = Unpack(o.Find(x => x.multiplier));
            m_SkyRotation             = Unpack(o.Find(x => x.rotation));
            m_EnvUpdateMode           = Unpack(o.Find(x => x.updateMode));
            m_EnvUpdatePeriod         = Unpack(o.Find(x => x.updatePeriod));
            m_IncludeSunInBaking      = Unpack(o.Find(x => x.includeSunInBaking));
            m_DesiredLuxValue         = Unpack(o.Find(x => x.desiredLuxValue));
            m_IntensityMode           = Unpack(o.Find(x => x.skyIntensityMode));
            m_UpperHemisphereLuxValue = Unpack(o.Find(x => x.upperHemisphereLuxValue));
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <HDShadowSettings>(serializedObject);

            m_MaxShadowDistance       = Unpack(o.Find(x => x.maxShadowDistance));
            m_CascadeShadowSplitCount = Unpack(o.Find(x => x.cascadeShadowSplitCount));
            m_CascadeShadowSplits[0]  = Unpack(o.Find(x => x.cascadeShadowSplit0));
            m_CascadeShadowSplits[1]  = Unpack(o.Find(x => x.cascadeShadowSplit1));
            m_CascadeShadowSplits[2]  = Unpack(o.Find(x => x.cascadeShadowSplit2));
            m_CascadeShadowBorders[0] = Unpack(o.Find(x => x.cascadeShadowBorder0));
            m_CascadeShadowBorders[1] = Unpack(o.Find(x => x.cascadeShadowBorder1));
            m_CascadeShadowBorders[2] = Unpack(o.Find(x => x.cascadeShadowBorder2));
            m_CascadeShadowBorders[3] = Unpack(o.Find(x => x.cascadeShadowBorder3));
        }
Example #20
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <TonemapperVolume>(serializedObject);

            m_IsEnabled           = Unpack(o.Find(x => x.isEnabled));
            m_Contrast            = Unpack(o.Find(x => x.contrast));
            m_Shoulder            = Unpack(o.Find(x => x.shoulder));
            m_GraypointIn         = Unpack(o.Find(x => x.graypointIn));
            m_GraypointOut        = Unpack(o.Find(x => x.graypointOut));
            m_Whitepoint          = Unpack(o.Find(x => x.whitepoint));
            m_CrossTalk           = Unpack(o.Find(x => x.crossTalk));
            m_Saturation          = Unpack(o.Find(x => x.saturation));
            m_CrossTalkSaturation = Unpack(o.Find(x => x.crossTalkSaturation));
        }
Example #21
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <PathTracing>(serializedObject);

            m_Enable                = Unpack(o.Find(x => x.enable));
            m_LayerMask             = Unpack(o.Find(x => x.layerMask));
            m_MaxSamples            = Unpack(o.Find(x => x.maximumSamples));
            m_MinDepth              = Unpack(o.Find(x => x.minimumDepth));
            m_MaxDepth              = Unpack(o.Find(x => x.maximumDepth));
            m_MaxIntensity          = Unpack(o.Find(x => x.maximumIntensity));
            m_SkyImportanceSampling = Unpack(o.Find(x => x.skyImportanceSampling));

#if ENABLE_UNITY_DENOISING_PLUGIN
            m_Denoising = Unpack(o.Find(x => x.denoising));
            m_UseAOV    = Unpack(o.Find(x => x.useAOVs));
            m_Temporal  = Unpack(o.Find(x => x.temporal));
#endif
        }
Example #22
0
        /// <summary>
        /// Call back for ScriptedImporterEditor
        /// </summary>
        public override void OnEnable()
        {
            base.OnEnable();

            PropertyFetcher <HDIESImporter> entryPoint0 = new PropertyFetcher <HDIESImporter>(serializedObject);
            SerializedProperty entryPoint1 = entryPoint0.Find <IESImporter>(x => x.commonIESImporter);
            SerializedProperty entryPoint  = entryPoint1.FindPropertyRelative("iesMetaData");

            iesImporterEditor.CommonOnEnable(entryPoint);
        }
Example #23
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <ChannelMixer>(serializedObject);

            m_RedOutRedIn     = Unpack(o.Find(x => x.redOutRedIn));
            m_RedOutGreenIn   = Unpack(o.Find(x => x.redOutGreenIn));
            m_RedOutBlueIn    = Unpack(o.Find(x => x.redOutBlueIn));
            m_GreenOutRedIn   = Unpack(o.Find(x => x.greenOutRedIn));
            m_GreenOutGreenIn = Unpack(o.Find(x => x.greenOutGreenIn));
            m_GreenOutBlueIn  = Unpack(o.Find(x => x.greenOutBlueIn));
            m_BlueOutRedIn    = Unpack(o.Find(x => x.blueOutRedIn));
            m_BlueOutGreenIn  = Unpack(o.Find(x => x.blueOutGreenIn));
            m_BlueOutBlueIn   = Unpack(o.Find(x => x.blueOutBlueIn));

            m_SelectedChannel = new SavedInt($"{target.GetType()}.SelectedChannel", 0);
        }
Example #24
0
        public override void OnEnable()
        {
            base.OnEnable();

            var o = new PropertyFetcher <ContactShadows>(serializedObject);

            m_Enable = Unpack(o.Find(x => x.enable));
            m_Length = Unpack(o.Find(x => x.length));
            m_DistanceScaleFactor = Unpack(o.Find(x => x.distanceScaleFactor));
            m_MaxDistance         = Unpack(o.Find(x => x.maxDistance));
            m_MinDistance         = Unpack(o.Find(x => x.minDistance));
            m_FadeDistance        = Unpack(o.Find(x => x.fadeDistance));
            m_FadeInDistance      = Unpack(o.Find(x => x.fadeInDistance));
            m_SampleCount         = Unpack(o.Find(x => x.sampleCount));
            m_Opacity             = Unpack(o.Find(x => x.opacity));
        }
Example #25
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <Tonemapping>(serializedObject);

            m_Mode             = Unpack(o.Find(x => x.mode));
            m_ToeStrength      = Unpack(o.Find(x => x.toeStrength));
            m_ToeLength        = Unpack(o.Find(x => x.toeLength));
            m_ShoulderStrength = Unpack(o.Find(x => x.shoulderStrength));
            m_ShoulderLength   = Unpack(o.Find(x => x.shoulderLength));
            m_ShoulderAngle    = Unpack(o.Find(x => x.shoulderAngle));
            m_Gamma            = Unpack(o.Find(x => x.gamma));
            m_LutTexture       = Unpack(o.Find(x => x.lutTexture));
            m_LutContribution  = Unpack(o.Find(x => x.lutContribution));

            m_Material = new Material(Shader.Find("Hidden/HD PostProcessing/Editor/Custom Tonemapper Curve"));
        }
Example #26
0
        void OnEnable()
        {
            m_Volume = target as CustomPassVolume;

            using (var o = new PropertyFetcher <CustomPassVolume>(serializedObject))
            {
                m_SerializedPassVolume = new SerializedPassVolume
                {
                    isGlobal       = o.Find(x => x.isGlobal),
                    injectionPoint = o.Find(x => x.injectionPoint),
                    customPasses   = o.Find(x => x.customPasses),
                    fadeRadius     = o.Find(x => x.fadeRadius),
                    priority       = o.Find(x => x.priority),
                };
            }

            CreateReorderableList(m_SerializedPassVolume.customPasses);

            UpdateMaterialEditors();
        }
Example #27
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <CameraVolume>(serializedObject);

            m_IsFrameLimitEnabled = Unpack(o.Find(x => x.isFrameLimitEnabled));
            m_FrameLimit          = Unpack(o.Find(x => x.frameLimit));
            m_AspectMode          = Unpack(o.Find(x => x.aspectMode));
            m_TargetRasterizationResolutionWidth  = Unpack(o.Find(x => x.targetRasterizationResolutionWidth));
            m_TargetRasterizationResolutionHeight = Unpack(o.Find(x => x.targetRasterizationResolutionHeight));
            m_IsDepthBufferEnabled = Unpack(o.Find(x => x.isDepthBufferEnabled));
            m_IsClearDepthAfterBackgroundEnabled = Unpack(o.Find(x => x.isClearDepthAfterBackgroundEnabled));
            m_IsClearDepthBeforeUIEnabled        = Unpack(o.Find(x => x.isClearDepthBeforeUIEnabled));
        }
Example #28
0
        public override void OnEnable()
        {
            base.OnEnable();

            // HDRI sky does not have control over sun display.
            m_CommonUIElementsMask = 0xFFFFFFFF & ~(uint)(SkySettingsUIElement.IncludeSunInBaking);

            var o = new PropertyFetcher <HDRISky>(serializedObject);

            m_hdriSky                 = Unpack(o.Find(x => x.hdriSky));
            m_DesiredLuxValue         = Unpack(o.Find(x => x.desiredLuxValue));
            m_IntensityMode           = Unpack(o.Find(x => x.skyIntensityMode));
            m_UpperHemisphereLuxValue = Unpack(o.Find(x => x.upperHemisphereLuxValue));

            m_IntensityTexture = RTHandles.Alloc(1, 1, colorFormat: GraphicsFormat.R32G32B32A32_SFloat);
            var hdrp = HDRenderPipeline.defaultAsset;

            m_IntegrateHDRISkyMaterial = CoreUtils.CreateEngineMaterial(hdrp.renderPipelineResources.shaders.integrateHdriSkyPS);
            readBackTexture            = new Texture2D(1, 1, TextureFormat.RGBAFloat, false, false);
        }
        public override void OnEnable()
        {
            var o = new PropertyFetcher <Overlay>(serializedObject);

            _sourceType  = Unpack(o.Find(x => x.sourceType));
            _blendMode   = Unpack(o.Find(x => x.blendMode));
            _opacity     = Unpack(o.Find(x => x.opacity));
            _color       = Unpack(o.Find(x => x.color));
            _gradient    = Unpack(o.Find(x => x.gradient));
            _angle       = Unpack(o.Find(x => x.angle));
            _texture     = Unpack(o.Find(x => x.texture));
            _sourceAlpha = Unpack(o.Find(x => x.sourceAlpha));
        }
Example #30
0
        public override void OnEnable()
        {
            var o = new PropertyFetcher <Recolor>(serializedObject);

            _edgeColor      = Unpack(o.Find(x => x.edgeColor));
            _edgeSource     = Unpack(o.Find(x => x.edgeSource));
            _edgeThreshold  = Unpack(o.Find(x => x.edgeThreshold));
            _edgeContrast   = Unpack(o.Find(x => x.edgeContrast));
            _fillGradient   = Unpack(o.Find(x => x.fillGradient));
            _fillOpacity    = Unpack(o.Find(x => x.fillOpacity));
            _ditherType     = Unpack(o.Find(x => x.ditherType));
            _ditherStrength = Unpack(o.Find(x => x.ditherStrength));
        }