Ejemplo n.º 1
0
        static FrameSettings GetDefaultFrameSettingsFor(Editor owner)
        {
            HDRenderPipelineAsset hdrpAsset = GetHDRPAssetFor(owner);

            return(owner is IDefaultFrameSettingsType getType
                ? hdrpAsset.GetDefaultFrameSettings(getType.GetFrameSettingsType())
                : hdrpAsset.GetDefaultFrameSettings(FrameSettingsRenderType.Camera));
        }
        static FrameSettings GetDefaultFrameSettingsFor(Editor owner)
        {
            HDRenderPipelineAsset hdrpAsset = GetHDRPAssetFor(owner);

            if (owner is IHDProbeEditor)
            {
                if ((owner as IHDProbeEditor).GetTarget(owner.target).mode == ProbeSettings.Mode.Realtime)
                {
                    return(hdrpAsset.GetDefaultFrameSettings(FrameSettingsRenderType.RealtimeReflection));
                }
                else
                {
                    return(hdrpAsset.GetDefaultFrameSettings(FrameSettingsRenderType.CustomOrBakedReflection));
                }
            }
            return(hdrpAsset.GetDefaultFrameSettings(FrameSettingsRenderType.Camera));
        }
Ejemplo n.º 3
0
        bool IsDXRGIFSCorrect()
        {
            HDRenderPipelineAsset hdrpAsset = HDRenderPipeline.currentAsset;

            if (hdrpAsset != null)
            {
                FrameSettings defaultCameraFS = hdrpAsset.GetDefaultFrameSettings(FrameSettingsRenderType.Camera);
                return(defaultCameraFS.IsEnabled(FrameSettingsField.SSGI));
            }
            else
            {
                return(false);
            }
        }
        bool IsDXRGIFSCorrect()
        {
            HDRenderPipelineAsset hdrpAsset = GraphicsSettings.renderPipelineAsset as HDRenderPipelineAsset; // Default FrameSettings is a global quality independent parameter

            if (hdrpAsset != null)
            {
                FrameSettings defaultCameraFS = hdrpAsset.GetDefaultFrameSettings(FrameSettingsRenderType.Camera);
                return(defaultCameraFS.IsEnabled(FrameSettingsField.SSGI));
            }
            else
            {
                return(false);
            }
        }