Unity Stencil buffer Alpha 처리 Shader
Shader "multiply2D" { Properties { [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} // UI가 아닐경우는 texture를 입력받아 sampling하게 변경할 것. _Color ("Tint", Color) = (1,1,1,1) _MainTex ("Base (RGB), Alpha (A)", 2D) = "white" {} _Stencil ("Stencil ID", Float) = 0 _ColorMask ("Color Mask", Float) = 15 _ClipAlpha ("ClipAlpha", Float) = 0.2 } SubShader { Tags { "Queue"="Transparent" "IgnoreProject..