close #32; SoftMask does not display properly at the edge of the canvas

pull/87/head
mob-sakai 2019-02-05 09:27:25 +09:00
parent 3502effc90
commit 39468327c7
1 changed files with 3 additions and 0 deletions

View File

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