From a28da49f24ebfdf63aca6e6a39078822492edb72 Mon Sep 17 00:00:00 2001 From: pastasfuture Date: Tue, 19 Oct 2021 13:32:23 -0700 Subject: [PATCH] Bugfix: Legacy Canvas UI no longer drawing --- CHANGELOG.md | 5 +++++ Runtime/RenderPipeline/PSXRenderPipeline.cs | 1 + package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 320750d..e0d1f4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +--------------------------------------------------------------------------------------------------------------------------- +Bugfix: **Legacy Canvas UI no longer drawing** +--------------------------------------------------------------------------------------------------------------------------- +Legacy Canvas UI broken from the **Canvas order is not considered for legacy Canvas UI** commit. Both are now fixed. + --------------------------------------------------------------------------------------------------------------------------- Bugfix: **Fix Precision issues with UV Animation Pan Linear and Pan Sin Modes** --------------------------------------------------------------------------------------------------------------------------- diff --git a/Runtime/RenderPipeline/PSXRenderPipeline.cs b/Runtime/RenderPipeline/PSXRenderPipeline.cs index cafe799..2016fb1 100644 --- a/Runtime/RenderPipeline/PSXRenderPipeline.cs +++ b/Runtime/RenderPipeline/PSXRenderPipeline.cs @@ -1623,6 +1623,7 @@ static void DrawLegacyCanvasUI(ScriptableRenderContext context, Camera camera, r var drawSettings = new DrawingSettings(PSXShaderPassNames.s_SRPDefaultUnlit, sortingSettings); var filterSettings = new FilteringSettings() { + renderQueueRange = RenderQueueRange.all, layerMask = camera.cullingMask, // Respect the culling mask specified on the camera so that users can selectively omit specific layers from rendering to this camera. renderingLayerMask = UInt32.MaxValue, // Everything excludeMotionVectorObjects = false diff --git a/package.json b/package.json index c61971c..18cb661 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.hauntedpsx.render-pipelines.psx", - "version": "1.6.0", + "version": "1.6.1", "displayName": "HauntedPS1 Render Pipeline (HPSXRP)", "description": "A scriptable render pipeline for emulating Playstation-1 and N64 style graphics on contemporary hardware.", "unity": "2019.3",