Shader "Map/Mask"
{
	Properties {
		[IntRange] _Mask ("Mask", Range(0, 255)) = 0
	}
	SubShader {
		Tags {
			"RenderType" = "Opaque"
			"Queue" = "Geometry-1"
		}

		Pass {
			Blend Zero One
			ZWrite Off

			Stencil {
				Ref 255
				WriteMask [_Mask]
				Comp Always
				Pass Replace
			}
		}
	}
}
