From f4554666f9ae226d975a0854c80f67b505230fec Mon Sep 17 00:00:00 2001 From: einaros Date: Tue, 8 Dec 2020 22:26:47 +0100 Subject: [PATCH 1/2] Fixes issue where URP wouldnt render HDR skyboxes --- .../Runtime/UniversalRenderPipelineCore.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs b/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs index 4cba1d1c06a..bc9f0785f72 100644 --- a/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs +++ b/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipelineCore.cs @@ -332,7 +332,14 @@ static RenderTextureDescriptor CreateRenderTextureDescriptor(Camera camera, floa desc = new RenderTextureDescriptor(camera.pixelWidth, camera.pixelHeight); desc.width = (int)((float)desc.width * renderScale); desc.height = (int)((float)desc.height * renderScale); + } + else + { + desc = camera.targetTexture.descriptor; + } + if (camera.targetTexture == null) + { GraphicsFormat hdrFormat; if (!needsAlpha && RenderingUtils.SupportsGraphicsFormat(GraphicsFormat.B10G11R11_UFloatPack32, FormatUsage.Linear | FormatUsage.Render)) hdrFormat = GraphicsFormat.B10G11R11_UFloatPack32; @@ -346,10 +353,6 @@ static RenderTextureDescriptor CreateRenderTextureDescriptor(Camera camera, floa desc.msaaSamples = msaaSamples; desc.sRGB = (QualitySettings.activeColorSpace == ColorSpace.Linear); } - else - { - desc = camera.targetTexture.descriptor; - } desc.enableRandomWrite = false; desc.bindMS = false; From d90da3661311f75c48b211ba8efcfc35f1735e98 Mon Sep 17 00:00:00 2001 From: einaros Date: Wed, 9 Dec 2020 13:34:43 +0100 Subject: [PATCH 2/2] Update changelog.md --- com.unity.render-pipelines.universal/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index 82f78b4826b..30741c7870c 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [8.3.2] - XXXX-XX-XX + +### Fixed +- Fixed an issue where HDR would never be enabled for camera render textures while in XR. + ## [8.3.1] - 2020-07-23 ### Fixed