46 lines
957 B
Plaintext
46 lines
957 B
Plaintext
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
|
|
|
|
// Simplified Alpha Blended Particle shader. Differences from regular Alpha Blended Particle one:
|
|
// - no Tint color
|
|
// - no Smooth particle support
|
|
// - no AlphaTest
|
|
// - no ColorMask
|
|
|
|
Shader "UI Particles/Alpha Blended" {
|
|
Properties {
|
|
_MainTex ("Particle Texture", 2D) = "white" {}
|
|
|
|
_Stencil ("Stencil ID", Float) = 0
|
|
|
|
[Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0
|
|
}
|
|
|
|
|
|
|
|
Category {
|
|
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
|
|
Blend SrcAlpha OneMinusSrcAlpha
|
|
Cull Off Lighting Off ZWrite Off Fog { Mode Off}
|
|
|
|
BindChannels {
|
|
Bind "Color", color
|
|
Bind "Vertex", vertex
|
|
Bind "TexCoord", texcoord
|
|
}
|
|
|
|
SubShader {
|
|
|
|
Stencil {
|
|
Ref [_Stencil]
|
|
Comp equal
|
|
}
|
|
|
|
Pass {
|
|
SetTexture [_MainTex] {
|
|
combine texture * primary
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|