Created
July 24, 2015 11:54
-
-
Save whaison/6a85e5fd164e2079d284 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simplified Additive Particle shader. Differences from regular Additive Particle one: | |
// - no Tint color | |
// - no Smooth particle support | |
// - no AlphaTest | |
// - no ColorMask | |
Shader "Mobile/Particles/Additive" { | |
Properties { | |
_MainTex ("Particle Texture", 2D) = "white" {} | |
} | |
Category { | |
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } | |
Blend SrcAlpha One | |
Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) } | |
BindChannels { | |
Bind "Color", color | |
Bind "Vertex", vertex | |
Bind "TexCoord", texcoord | |
} | |
SubShader { | |
Pass { | |
SetTexture [_MainTex] { | |
combine texture * primary | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment