nanopony / Unity3dMasking

Demo of sprite masking shaders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity3d Sprite Masking demo

Two separate clipping groups

Two shaders: ClippingGroup (aka stencil) and ClippedSprite (i.e. what should be clipped).

Multiple clipping groups are supported, but beware of overlapping. If clipping groups could be overlapped then stencil masking should be used instead, but it will limit amount of indepentent ClippingGroups to 8.

About

Demo of sprite masking shaders


Languages

Language:ShaderLab 90.8%Language:C# 9.2%