mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 13:45:10 +00:00
42 lines
No EOL
1.1 KiB
GLSL
42 lines
No EOL
1.1 KiB
GLSL
Shader "UI Extensions/Particles/VertexLit Blended" {
|
|
Properties {
|
|
_EmisColor ("Emissive Color", Color) = (.2,.2,.2,0)
|
|
_MainTex ("Particle Texture", 2D) = "white" {}
|
|
|
|
_StencilComp ("Stencil Comparison", Float) = 8
|
|
_Stencil ("Stencil ID", Float) = 0
|
|
_StencilOp ("Stencil Operation", Float) = 0
|
|
_StencilWriteMask ("Stencil Write Mask", Float) = 255
|
|
_StencilReadMask ("Stencil Read Mask", Float) = 255
|
|
|
|
_ColorMask ("Color Mask", Float) = 15
|
|
|
|
[Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0
|
|
}
|
|
|
|
SubShader {
|
|
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" "CanUseSpriteAtlas"="True" }
|
|
Tags { "LightMode" = "Vertex" }
|
|
Cull Off
|
|
Lighting On
|
|
Material { Emission [_EmisColor] }
|
|
ColorMaterial AmbientAndDiffuse
|
|
ZWrite Off
|
|
ColorMask RGB
|
|
Blend SrcAlpha OneMinusSrcAlpha
|
|
|
|
Stencil
|
|
{
|
|
Ref [_Stencil]
|
|
Comp [_StencilComp]
|
|
Pass [_StencilOp]
|
|
ReadMask [_StencilReadMask]
|
|
WriteMask [_StencilWriteMask]
|
|
}
|
|
|
|
Pass {
|
|
|
|
SetTexture [_MainTex] { combine primary * texture }
|
|
}
|
|
}
|
|
} |