From 741c8b80c0517e31faedf6f08f371e1394f0334a 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 --- Scripts/SoftMask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/SoftMask.cs b/Scripts/SoftMask.cs index 4e79616..908e9ce 100644 --- a/Scripts/SoftMask.cs +++ b/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 {