void OnBeginCameraRendering(ScriptableRenderContext context, Camera camera)
    {
        if (m_Camera == null || camera != m_Camera)
        {
            return;
        }

        DynamicResolutionHandler.SetUpscaleFilter(m_Camera, DrsFilter);
    }
Exemple #2
0
    void OnEnable()
    {
        // Binds the dynamic resolution policy defined above.
        DynamicResolutionHandler.SetDynamicResScaler(SetScaleDirect, DynamicResScalePolicyType.ReturnsMinMaxLerpFactor);

        // if (GraphicsSettings.currentRenderPipeline is HDRenderPipelineAsset hdrp)
        // {
        //     hdrp.
        // }
    }
 void OnEnable()
 {
     // Binds the dynamic resolution policy defined above.
     DynamicResolutionHandler.SetDynamicResScaler(SetDynamicResolutionScale,
                                                  DynamicResScalePolicyType.ReturnsMinMaxLerpFactor);
 }