Closed AndreasMLarsen closed 4 years ago
Hi @AndreasMLarsen ,
Thank you for your reporting!
Hi @mob-sakai, I've look through the changes and it doesn't seem to be fixed, however changing line 484-491 from:
#if !UNITY_2018_1_OR_NEWER
s_previousViewProjectionMatrices.Clear ();
foreach (int id in s_previousViewProjectionMatrices.Keys)
{
s_previousViewProjectionMatrices [id] = s_nowViewProjectionMatrices [id];
}
s_nowViewProjectionMatrices.Clear ();
#endif
to:
s_previousViewProjectionMatrices.Clear ();
foreach (int id in s_nowViewProjectionMatrices.Keys)
{
s_previousViewProjectionMatrices [id] = s_nowViewProjectionMatrices [id];
}
s_nowViewProjectionMatrices.Clear ();
Seems to work
@AndreasMLarsen
Thanks!
When using a World Space camera that is not moving, nowVP and previousVP is never the same causing sm.hasChanged to be set to true. This in turn causes the mask to be drawn every frame.
Steps to reproduce the behavior:
Add a Image with the SoftMask script and a child image with the SoftMaskable script
I've added a project with a lite version of the setup we are currently running. SoftMaskTest.zip