diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 6a43baa1257..dd16bf9acf0 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -115,6 +115,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed a warning in materialevalulation - Fixed an error when building the player. - Fixed issue with box light not visible if range is below one and range attenuation is off. +- Fixed alpha not having TAA applied to it. ### Changed - Preparation pass for RTSSShadows to be supported by render graph. diff --git a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/TemporalAntiAliasing.shader b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/TemporalAntiAliasing.shader index 091b0f223e6..f1db75a11be 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/TemporalAntiAliasing.shader +++ b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/TemporalAntiAliasing.shader @@ -235,6 +235,10 @@ Shader "Hidden/HDRP/TemporalAA" color.xyz = ConvertToOutputSpace(finalColor.xyz); color.xyz = clamp(color.xyz, 0, CLAMP_MAX); +#if defined(ENABLE_ALPHA) + // Set output alpha to the antialiased alpha. + color.w = filteredColor.w; +#endif _OutputHistoryTexture[COORD_TEXTURE2D_X(input.positionCS.xy)] = color.CTYPE_SWIZZLE; outColor = color.CTYPE_SWIZZLE;