From 9ed8d73e226ebd585c8c0bd27b50d3f1187804fc Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 15 Mar 2019 23:14:15 +0900 Subject: [PATCH] fix #41; Doesn't work with Screen-Space Camera and World-Space --- Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs index 4e79616..908e9ce 100644 --- a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs +++ b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs @@ -467,7 +467,7 @@ namespace Coffee.UIExtensions var cam = c.worldCamera ?? Camera.main; if (c && c.renderMode != RenderMode.ScreenSpaceOverlay && cam) { - _cb.SetViewProjectionMatrices(cam.worldToCameraMatrix, GL.GetGPUProjectionMatrix(cam.projectionMatrix, true)); + _cb.SetViewProjectionMatrices(cam.worldToCameraMatrix, GL.GetGPUProjectionMatrix(cam.projectionMatrix, false)); } else {