Created
April 23, 2015 03:57
-
-
Save keijiro/c5b67a3e78201084e1e2 to your computer and use it in GitHub Desktop.
Mobile/Particles/Additive shader (Unity built-in shader)
This file contains hidden or 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