Shader "Carmen/Light Strip" { Properties { _MainTex ("_MainTex", 2D) = "white" {} _Color ("Color", Color) = (1,1,1,1) _Glow ("Glow", Range(0.0, 100.0)) = 0.0 } SubShader { Tags { "RenderType"="Opaque" } LOD 200 Pass { Cull Off CGPROGRAM #include "UnityCG.cginc" #pragma vertex vert #pragma fragment frag UNITY_DECLARE_TEX2D(_MainTex); float4 _MainTex_ST; fixed4 _Color; half _Glow; struct Data { float4 vertex : POSITION; float4 normal : NORMAL; float2 uv : TEXCOORD0; }; struct V2F { float4 position : SV_POSITION; float2 uv : TEXCOORD0; }; V2F vert(Data v) { V2F o; o.position = UnityObjectToClipPos(v.vertex); o.uv = TRANSFORM_TEX(v.uv, _MainTex); return o; } fixed4 frag(V2F i) : SV_TARGET { half4 Tex = UNITY_SAMPLE_TEX2D(_MainTex, i.uv); if (Tex.r < 0.5) discard; return fixed4((Tex * _Color * (_Glow + 1.0)).rgb, Tex.r); } ENDCG } } FallBack "Diffuse" }