Skip to content

Instantly share code, notes, and snippets.

View ronrejwan's full-sized avatar

Ron Rejwan ronrejwan

View GitHub Profile
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Sprites/Stencil"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
}
#region Using
using System.Linq;
using Assets.Scripts.Utils;
using UnityEngine;
using UnityEngine.SceneManagement;
#endregion
/// <summary>