test
testing
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
Shader "BlendedDecal"
|
||||
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Color ("Tint", Color) = (1,1,1,1)
|
||||
_MainTex ("Texture", 2D) = "white" {}
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Lighting Off
|
||||
ZTest LEqual
|
||||
ZWrite Off
|
||||
Tags {"Queue" = "Transparent"}
|
||||
Pass
|
||||
{
|
||||
Alphatest Greater 0
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
Offset -1, -1
|
||||
SetTexture [_MainTex]
|
||||
{
|
||||
ConstantColor[_Color]
|
||||
Combine texture * constant
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 049e56f7b034914469a73edfd18be295
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
@@ -0,0 +1,41 @@
|
||||
Shader "Particles/Additive" {
|
||||
Properties {
|
||||
_TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
|
||||
_MainTex ("Particle Texture", 2D) = "white" {}
|
||||
}
|
||||
|
||||
Category {
|
||||
Tags { "Queue" = "Transparent" }
|
||||
Blend SrcAlpha One
|
||||
AlphaTest Greater .01
|
||||
ColorMask RGB
|
||||
Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) }
|
||||
BindChannels {
|
||||
Bind "Color", color
|
||||
Bind "Vertex", vertex
|
||||
Bind "TexCoord", texcoord
|
||||
}
|
||||
|
||||
// ---- Dual texture cards
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
constantColor [_TintColor]
|
||||
combine constant * primary DOUBLE
|
||||
}
|
||||
SetTexture [_MainTex] {
|
||||
combine texture * previous
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Single texture cards (does not do color tint)
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
combine texture * primary
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0cb3a4c163cb92a43b5d5242b9259e1d
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
@@ -0,0 +1,41 @@
|
||||
Shader "Particles/Alpha Blended" {
|
||||
Properties {
|
||||
_TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
|
||||
_MainTex ("Particle Texture", 2D) = "white" {}
|
||||
}
|
||||
|
||||
Category {
|
||||
Tags { "Queue" = "Transparent" }
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
AlphaTest Greater .01
|
||||
ColorMask RGB
|
||||
Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) }
|
||||
BindChannels {
|
||||
Bind "Color", color
|
||||
Bind "Vertex", vertex
|
||||
Bind "TexCoord", texcoord
|
||||
}
|
||||
|
||||
// ---- Dual texture cards
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
constantColor [_TintColor]
|
||||
combine constant * primary DOUBLE
|
||||
}
|
||||
SetTexture [_MainTex] {
|
||||
combine texture * previous
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Single texture cards (does not do color tint)
|
||||
SubShader {
|
||||
Pass {
|
||||
SetTexture [_MainTex] {
|
||||
combine texture * primary
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 74419da32385708409efb3914af9c5c9
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
Reference in New Issue
Block a user