| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- Shader "MoleGame/Efxadd/add+blend"
- {
- Properties
- {
- _Color ("Main Color", Color) = (0.5,0.5,0.5,0.5)
- _MainTex ("Particle Texture", 2D) = "white" {}
-
- _Color2 ("Main Color 2", Color) = (0.5,0.5,0.5,0.5)
- _MainTex2 ("Particle Texture 2", 2D) = "white" {}
- }
- Category
- {
- Tags { "Queue"="Transparent"}
- Cull Off
- ZWrite Off
- Fog { Color (0,0,0,0) }
-
- BindChannels
- {
- Bind "Color", color
- Bind "Vertex", vertex
- Bind "TexCoord", texcoord
- }
-
- SubShader
- {
- //AA
- Pass
- {
- Blend SrcAlpha One
-
- SetTexture [_MainTex]
- {
- constantColor [_Color]
- combine constant * primary
- }
- SetTexture [_MainTex]
- {
- combine texture * previous double
- }
- }
- //AB
- Pass
- {
- Blend SrcAlpha OneMinusSrcAlpha
- SetTexture [_MainTex2]
- {
- constantColor [_Color2]
- combine constant * primary
- }
- SetTexture [_MainTex2]
- {
- combine texture * previous double
- }
- }
- }
- }
- }
|