From 3b95bb5ce411944c8deb69e1d4bb618a47cf2d0f Mon Sep 17 00:00:00 2001 From: Pavlos Mavridis Date: Thu, 22 Apr 2021 14:55:49 +0200 Subject: [PATCH] Fix shader warning when using Lanczos upsampling --- .../Runtime/PostProcessing/Shaders/FinalPass.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/FinalPass.shader b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/FinalPass.shader index 93d99ec8de4..edfa4ddaf35 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/FinalPass.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/FinalPass.shader @@ -71,7 +71,7 @@ Shader "Hidden/HDRP/FinalPass" #elif CATMULL_ROM_4 return CatmullRomFourSamples(_InputTexture, UV); #elif LANCZOS - return Lanczos(_InputTexture, UV, _ViewPortSize); + return Lanczos(_InputTexture, UV, _ViewPortSize.xy); #else return Nearest(_InputTexture, UV); #endif