diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index d988de57180..26852f3a17d 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed disabled debug lighting modes on Vulkan and OpenGL following a shader compiler fix. [case 1334240] - Fixed an issue in where the Convert Renderering Settings would cause a freeze. [case 1353885](https://issuetracker.unity3d.com/issues/urp-builtin-to-urp-render-pipeline-converter-freezes-the-editor-when-converting-rendering-settings) - Fixed incorrect behavior of Reflections with Smoothness lighting debug mode. [case 1374181] +- Fixed an issue where intermediate rendertextures were not scaled when a camera was rendering to a texture [case 1342895](https://issuetracker.unity3d.com/issues/camera-rendertocubemap-offsets-and-stretches-out-the-ambient-occlusionl-layer-when-the-render-scale-is-not-equal-to-1) ## [13.1.0] - 2021-09-24 ### Added diff --git a/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs b/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs index 504730cf2fe..7a9a825bc74 100644 --- a/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs +++ b/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs @@ -551,8 +551,8 @@ static RenderTextureDescriptor CreateRenderTextureDescriptor(Camera camera, floa else { desc = camera.targetTexture.descriptor; - desc.width = camera.pixelWidth; - desc.height = camera.pixelHeight; + desc.width = (int)((float)camera.pixelWidth * renderScale); + desc.height = (int)((float)camera.pixelHeight * renderScale); if (camera.cameraType == CameraType.SceneView && !isHdrEnabled) { desc.graphicsFormat = SystemInfo.GetGraphicsFormat(DefaultFormat.LDR);