mirror of
https://github.com/maxartz15/InteractiveMask.git
synced 2024-11-22 05:25:36 +01:00
Update MaskRenderer.cs
Option to enable/disable layers.
This commit is contained in:
parent
e94f11424f
commit
9cac72255c
@ -119,6 +119,7 @@ namespace TAO.InteractiveMask
|
||||
{
|
||||
public static int LayerCount = 0;
|
||||
|
||||
public bool enabled = true;
|
||||
public Type type = Type.Clear;
|
||||
public Mask mask = new Mask();
|
||||
public Shader blit = null;
|
||||
@ -168,6 +169,11 @@ namespace TAO.InteractiveMask
|
||||
|
||||
public void Blit(RenderTexture source, RenderTexture target)
|
||||
{
|
||||
if (!enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case Type.Clear:
|
||||
|
Loading…
Reference in New Issue
Block a user