Skip to content

Commit

Permalink
close #32; SoftMask does not display properly at the edge of the canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Feb 5, 2019
1 parent 3502eff commit 3946832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SoftMask.cginc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3946832

Please sign in to comment.