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. 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