From 62a08baea85619d74dd18fd0c30b06e542118dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Czy=C5=BCycki?= Date: Thu, 18 May 2023 15:26:47 +0200 Subject: [PATCH 1/2] Fix compilation warnings on shaders from VFX graphs --- .../Runtime/VFXGraph/Shaders/VFXCommon.hlsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders/VFXCommon.hlsl b/Packages/com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders/VFXCommon.hlsl index a81cfb963f4..87dbb27bd74 100644 --- a/Packages/com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders/VFXCommon.hlsl +++ b/Packages/com.unity.render-pipelines.universal/Runtime/VFXGraph/Shaders/VFXCommon.hlsl @@ -200,9 +200,9 @@ float3 VFXGetCameraWorldDirection() #if defined(_GBUFFER_NORMALS_OCT) #define VFXComputePixelOutputToNormalBuffer(i,normalWS,uvData,outNormalBuffer) \ { \ - float2 octNormalWS = PackNormalOctQuadEncode(normalWS); \ // values between [-1, +1], must use fp32 on some platforms - float2 remappedOctNormalWS = saturate(octNormalWS * 0.5 + 0.5); \ // values between [ 0, 1] - half3 packedNormalWS = PackFloat2To888(remappedOctNormalWS); \ // values between [ 0, 1] + float2 octNormalWS = PackNormalOctQuadEncode(normalWS); /* values between [-1, +1], must use fp32 on some platforms */ \ + float2 remappedOctNormalWS = saturate(octNormalWS * 0.5 + 0.5); /* values between [ 0, 1] */ \ + half3 packedNormalWS = PackFloat2To888(remappedOctNormalWS); /* values between [ 0, 1] */ \ outNormalBuffer = float4(packedNormalWS, 0.0); \ } #else From 74565e59e75ce1af5f12ae9b98c2a5504617880b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Czy=C5=BCycki?= Date: Thu, 18 May 2023 15:40:26 +0200 Subject: [PATCH 2/2] Add fix description to the appropriate CHANGELOG.md --- Packages/com.unity.render-pipelines.universal/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Packages/com.unity.render-pipelines.universal/CHANGELOG.md b/Packages/com.unity.render-pipelines.universal/CHANGELOG.md index b5a62cf3f1a..926c4d0cfb9 100644 --- a/Packages/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/Packages/com.unity.render-pipelines.universal/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. Version Updated The version number for this package has increased due to a version update of a related graphics package. +### Fixed +- Fixed an issue where a compilation of any VFX Graph caused warnings when using URP. + ## [14.0.6] - 2023-03-24 This version is compatible with Unity 2022.2.13f1.