Shader "Hidden/ProBuilder/EdgePicker" { Properties {} SubShader { Tags { "ProBuilderPicker"="EdgePass" "IgnoreProjector"="True" "DisableBatching"="True" "LightMode"="Always" } Lighting Off ZTest LEqual ZWrite On Cull Off Blend Off Pass { Name "Edges" AlphaTest Greater .25 CGPROGRAM #pragma vertex vert #pragma fragment frag #include "UnityCG.cginc" #include "ProBuilderCG.cginc" struct appdata { float4 vertex : POSITION; float4 color : COLOR; }; struct v2f { float4 pos : SV_POSITION; float4 color : COLOR; }; v2f vert (appdata v) { v2f o; o.pos = UnityObjectToClipPosWithOffset(v.vertex.xyz); o.color = v.color; return o; } float4 frag (v2f i) : COLOR { return i.color; } ENDCG } } }