From 39468327c7a83ce9c7302555e64a12f3169bb412 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 5 Feb 2019 09:27:25 +0900 Subject: [PATCH] close #32; SoftMask does not display properly at the edge of the canvas --- SoftMask.cginc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SoftMask.cginc b/SoftMask.cginc index 22360bc..89e5cbb 100644 --- a/SoftMask.cginc +++ b/SoftMask.cginc @@ -48,6 +48,9 @@ float SoftMaskInternal(float4 clipPos) * GetMaskAlpha(mask.y, 3, _MaskInteraction.y) * GetMaskAlpha(mask.z, 7, _MaskInteraction.z) * GetMaskAlpha(mask.w, 15, _MaskInteraction.w) + #if SOFTMASK_EDITOR + * step(0, view.x) * step(view.x, 1) * step(0, view.y) * step(view.y, 1) + #endif ; return alpha;