public override void LoadSettingsFromObject(QualitySettingsBlob settings)
        {
            // RTAO
            settings.TryLoad <float>(ref m_RayLength);
            settings.TryLoad <int>(ref m_SampleCount);
            settings.TryLoad <bool>(ref m_Denoise);
            settings.TryLoad <float>(ref m_DenoiserRadius);

            // SSAO
            settings.TryLoad <int>(ref m_MaximumRadiusInPixels);
            settings.TryLoad <bool>(ref m_FullResolution);
            settings.TryLoad <int>(ref m_StepCount);
            settings.TryLoad <int>(ref m_DirectionCount);
            settings.TryLoad <bool>(ref m_BilateralUpsample);
        }
        public override void LoadSettingsFromObject(QualitySettingsBlob settings)
        {
            // RTGI
            settings.TryLoad <float>(ref m_RayLength);
            settings.TryLoad <float>(ref m_ClampValue);
            settings.TryLoad <bool>(ref m_FullResolution);
            settings.TryLoad <int>(ref m_UpscaleRadius);
            settings.TryLoad <bool>(ref m_Denoise);
            settings.TryLoad <bool>(ref m_HalfResolutionDenoiser);
            settings.TryLoad <float>(ref m_DenoiserRadius);
            settings.TryLoad <bool>(ref m_SecondDenoiserPass);

            // SSGI
            settings.TryLoad <int>(ref m_RaySteps);
            settings.TryLoad <int>(ref m_FilterRadius);
        }
        public override QualitySettingsBlob SaveCustomQualitySettingsAsObject(QualitySettingsBlob settings = null)
        {
            if (settings == null)
            {
                settings = new QualitySettingsBlob();
            }

            settings.Save <int>(m_NearSampleCount);
            settings.Save <float>(m_NearMaxBlur);
            settings.Save <int>(m_FarSampleCount);
            settings.Save <float>(m_FarMaxBlur);
            settings.Save <int>(m_Resolution);
            settings.Save <bool>(m_HighQualityFiltering);
            settings.Save <bool>(m_PhysicallyBased);

            return(settings);
        }
 public override void LoadSettingsFromObject(QualitySettingsBlob settings)
 {
     // RTR
     if (HDRenderPipeline.pipelineSupportsRayTracing && m_RayTracing.overrideState.boolValue &&
         m_RayTracing.value.boolValue)
     {
         settings.TryLoad <float>(ref m_MinSmoothness);
         settings.TryLoad <float>(ref m_SmoothnessFadeStart);
         settings.TryLoad <float>(ref m_RayLength);
         settings.TryLoad <float>(ref m_ClampValue);
         settings.TryLoad <int>(ref m_UpscaleRadius);
         settings.TryLoad <bool>(ref m_FullResolution);
         settings.TryLoad <bool>(ref m_Denoise);
         settings.TryLoad <int>(ref m_DenoiserRadius);
     }
     // SSR
     else
     {
         settings.TryLoad <int>(ref m_RayMaxIterations);
     }
 }
示例#5
0
        public override QualitySettingsBlob SaveCustomQualitySettingsAsObject(QualitySettingsBlob settings = null)
        {
            if (settings == null)
            {
                settings = new QualitySettingsBlob();
            }

            // RTAO
            settings.Save <float>(m_RayLength);
            settings.Save <int>(m_SampleCount);
            settings.Save <bool>(m_Denoise);
            settings.Save <float>(m_DenoiserRadius);

            // SSAO
            settings.Save <int>(m_MaximumRadiusInPixels);
            settings.Save <bool>(m_FullResolution);
            settings.Save <int>(m_StepCount);
            settings.Save <int>(m_DirectionCount);
            settings.Save <bool>(m_BilateralUpsample);

            return(settings);
        }
示例#6
0
 public override void LoadSettingsFromObject(QualitySettingsBlob settings)
 {
     // RTR
     if (HDRenderPipeline.pipelineSupportsRayTracing && m_Tracing.overrideState.boolValue &&
         m_Tracing.value.GetEnumValue <RayCastingMode>() != RayCastingMode.RayMarching)
     {
         settings.TryLoad <float>(ref m_MinSmoothness);
         settings.TryLoad <float>(ref m_SmoothnessFadeStart);
         settings.TryLoad <float>(ref m_RayLength);
         settings.TryLoad <float>(ref m_ClampValue);
         settings.TryLoad <bool>(ref m_FullResolution);
         settings.TryLoad <bool>(ref m_RayMaxIterationsRT);
         settings.TryLoad <bool>(ref m_Denoise);
         settings.TryLoad <int>(ref m_DenoiserRadius);
         settings.TryLoad <bool>(ref m_AffectsSmoothSurfaces);
     }
     // SSR
     else
     {
         settings.TryLoad <int>(ref m_RayMaxIterations);
     }
 }
示例#7
0
        public override QualitySettingsBlob SaveCustomQualitySettingsAsObject(QualitySettingsBlob settings = null)
        {
            if (settings == null)
            {
                settings = new QualitySettingsBlob();
            }

            // RTR
            settings.Save <float>(m_MinSmoothness);
            settings.Save <float>(m_SmoothnessFadeStart);
            settings.Save <float>(m_RayLength);
            settings.Save <float>(m_ClampValue);
            settings.Save <bool>(m_FullResolution);
            settings.Save <bool>(m_RayMaxIterationsRT);
            settings.Save <bool>(m_Denoise);
            settings.Save <int>(m_DenoiserRadius);
            settings.Save <bool>(m_AffectsSmoothSurfaces);
            // SSR
            settings.Save <int>(m_RayMaxIterations);

            return(settings);
        }
        public override QualitySettingsBlob SaveCustomQualitySettingsAsObject(QualitySettingsBlob settings = null)
        {
            if (settings == null)
            {
                settings = new QualitySettingsBlob();
            }

            // RTGI
            settings.Save <float>(m_RayLength);
            settings.Save <float>(m_ClampValue);
            settings.Save <bool>(m_FullResolution);
            settings.Save <int>(m_UpscaleRadius);
            settings.Save <bool>(m_Denoise);
            settings.Save <bool>(m_HalfResolutionDenoiser);
            settings.Save <float>(m_DenoiserRadius);
            settings.Save <bool>(m_SecondDenoiserPass);

            // SSGI
            settings.Save <int>(m_RaySteps);
            settings.Save <int>(m_FilterRadius);

            return(settings);
        }
 public override void LoadSettingsFromObject(QualitySettingsBlob settings)
 {
     if (HDRenderPipeline.pipelineSupportsRayTracing && m_Tracing.overrideState.boolValue &&
         m_Tracing.value.GetEnumValue <RayCastingMode>() != RayCastingMode.RayMarching)
     {
         // RTGI
         settings.TryLoad <float>(ref m_RayLength);
         settings.TryLoad <float>(ref m_ClampValue);
         settings.TryLoad <bool>(ref m_FullResolution);
         settings.TryLoad <int>(ref m_UpscaleRadius);
         settings.TryLoad <int>(ref m_MaxMixedRaySteps);
         settings.TryLoad <bool>(ref m_Denoise);
         settings.TryLoad <bool>(ref m_HalfResolutionDenoiser);
         settings.TryLoad <float>(ref m_DenoiserRadius);
         settings.TryLoad <bool>(ref m_SecondDenoiserPass);
     }
     else
     {
         // SSGI
         settings.TryLoad <int>(ref m_RaySteps);
         settings.TryLoad <int>(ref m_FilterRadius);
     }
 }
示例#10
0
 public override void LoadSettingsFromObject(QualitySettingsBlob settings)
 {
     settings.TryLoad <int>(ref m_SampleCount);
 }
示例#11
0
 public override void LoadSettingsFromObject(QualitySettingsBlob settings)
 {
     settings.TryLoad <int>(ref m_Resolution);
     settings.TryLoad <bool>(ref m_HighQualityPrefiltering);
     settings.TryLoad <bool>(ref m_HighQualityFiltering);
 }
 /// <summary>
 /// This function should be overriden by a volume component to load a custom preset setting from an opaque binary blob (as returned from SaveCustomQualitySettingsAsObject)
 /// </summary>
 public virtual void LoadSettingsFromObject(QualitySettingsBlob settings)
 {
 }
 /// <summary>
 /// This function should be overriden by a volume component to return an opaque object (binary blob) with the custom quality settings currently in use.
 /// </summary>
 public virtual QualitySettingsBlob SaveCustomQualitySettingsAsObject(QualitySettingsBlob history = null)
 {
     return(null);
 }
 // Cache the quality setting
 public QualityScope(VolumeComponentWithQualityEditor component)
 {
     m_QualityComponent = component;
     m_Settings         = m_QualityComponent.SaveCustomQualitySettingsAsObject();
     EditorGUI.BeginChangeCheck();
 }