*
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
Shader "Mobile/Particles/Multiply Culled" {
|
||||
Properties {
|
||||
_MainTex ("Main Texture", 2D) = "white" {}
|
||||
}
|
||||
|
||||
Category {
|
||||
Tags { "Queue" = "Transparent" }
|
||||
Blend Zero SrcColor
|
||||
Lighting Off ZWrite Off Fog { Mode Off }
|
||||
BindChannels {
|
||||
Bind "Color", color
|
||||
Bind "Vertex", vertex
|
||||
Bind "TexCoord", texcoord
|
||||
}
|
||||
|
||||
// ---- Dual texture cards
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
combine texture * primary
|
||||
}
|
||||
SetTexture [_MainTex] {
|
||||
constantColor (1,1,1,1)
|
||||
combine previous lerp (previous) constant
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Single texture cards (does not do particle colors)
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
constantColor (1,1,1,1)
|
||||
combine texture lerp(texture) constant
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 830b18403dea84783b74345dea9f0606
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
Shader "Mobile/Particles/Additive Culled" {
|
||||
Properties {
|
||||
_TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
|
||||
_MainTex ("Particle Texture", 2D) = "white" {}
|
||||
}
|
||||
|
||||
Category {
|
||||
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
|
||||
Blend SrcAlpha One
|
||||
AlphaTest Greater .01
|
||||
ColorMask RGB
|
||||
Cull Back Lighting Off ZWrite Off Fog { Mode Off }
|
||||
BindChannels {
|
||||
Bind "Color", color
|
||||
Bind "Vertex", vertex
|
||||
Bind "TexCoord", texcoord
|
||||
}
|
||||
|
||||
// ---- Dual texture cards
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
constantColor [_TintColor]
|
||||
combine constant * primary
|
||||
}
|
||||
SetTexture [_MainTex] {
|
||||
combine texture * previous DOUBLE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Single texture cards (does not do color tint)
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
combine texture * primary
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 73b473491223046b3bccb04fdb29c994
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
Reference in New Issue
Block a user