Skip to content

Commit

Permalink
feat: memoryless mode (depth)
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Aug 17, 2020
1 parent 7a472f4 commit 8cf202f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/SoftMaskForUGUI/Scripts/SoftMask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public RenderTexture softMaskBuffer

if (!_softMaskBuffer)
{
_softMaskBuffer = RenderTexture.GetTemporary(w, h, 0, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default);
_softMaskBuffer = RenderTexture.GetTemporary(w, h, 0, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default, 1, RenderTextureMemoryless.Depth);
hasChanged = true;
_hasStencilStateChanged = true;
}
Expand Down

0 comments on commit 8cf202f

Please sign in to comment.