fix #41; Doesn't work with Screen-Space Camera and World-Space

pull/87/head
mob-sakai 2019-03-15 23:14:15 +09:00
parent bd6f85965e
commit 741c8b80c0
1 changed files with 1 additions and 1 deletions

View File

@ -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
{