From 293dd087b795beac7d3715295ee99c7479038e74 Mon Sep 17 00:00:00 2001 From: Kleber Garcia Date: Tue, 13 Apr 2021 10:01:22 -0400 Subject: [PATCH 1/2] Less aggressive epsilon, causing lines visual artifacts on ps4 --- .../Runtime/PostProcessing/Shaders/RTUpscale.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/RTUpscale.hlsl b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/RTUpscale.hlsl index 6f81a264682..7a0ff2b6257 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/RTUpscale.hlsl +++ b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/RTUpscale.hlsl @@ -43,7 +43,7 @@ void WeightedAcc(CTYPE value, float weight, inout CTYPE accumulated, inout float // TODO: Revisit derivation. CTYPE Lanczos(TEXTURE2D_X(_InputTexture), float2 inUV, float2 textureSize) { - const float epsilon = 0.0000000001; + const float epsilon = 1e-6; const float a = 3.0; // Lanczos 3 float2 TexSize = textureSize.xy; From c2f9e0eb2cb911c286ac6d8cabb170d55303c423 Mon Sep 17 00:00:00 2001 From: Kleber Garcia Date: Tue, 13 Apr 2021 10:19:30 -0400 Subject: [PATCH 2/2] Changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 4910e3e9b11..228f5425c08 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -139,6 +139,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed issue with the color space of AOVs (case 1324759) - Fixed issue with history buffers when using multiple AOVs (case 1323684). - Fixed camera preview with multi selection (case 1324126). +- Fixed broken Lanczos filter artifacts on ps4, caused by a very aggressive epsilon (case 1328904) ### Changed - Changed Window/Render Pipeline/HD Render Pipeline Wizard to Window/Rendering/HDRP Wizard