summaryrefslogtreecommitdiff
path: root/Assets/Art/Shaders/Effects
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Art/Shaders/Effects')
-rw-r--r--Assets/Art/Shaders/Effects/RimLight 1.shader137
-rw-r--r--Assets/Art/Shaders/Effects/RimLight 1.shader.meta9
-rw-r--r--Assets/Art/Shaders/Effects/RimLight.shader58
-rw-r--r--Assets/Art/Shaders/Effects/RimLight.shader.meta9
4 files changed, 0 insertions, 213 deletions
diff --git a/Assets/Art/Shaders/Effects/RimLight 1.shader b/Assets/Art/Shaders/Effects/RimLight 1.shader
deleted file mode 100644
index ff521c4f..00000000
--- a/Assets/Art/Shaders/Effects/RimLight 1.shader
+++ /dev/null
@@ -1,137 +0,0 @@
-// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
-
-// Unlit alpha-blended shader.
-// - no lighting
-// - no lightmap support
-// - no per-material color
-
-Shader "ASESampleShaders/RimLight" {
- Properties{
- _MainTex("Base (RGBA)", 2D) = "white" {}
- [HDR]_Color1("Hi Color", color) = (1.0,1.0,1.0,1.0)
- _Step1("Color Cutoff", range(0.0,2.0)) = 0.5
- [HDR]_Color2("Lo Color", color) = (1.0,0.95,0.8,1.0)
-
- _Intensity("Intensity", range(1,0)) = 1
-
- _MKGlowPower("Emission Power", range(0,10)) = 0
-
- _MKGlowColor("Emission Color", color) = (1.0,0.95,0.8,1.0)
-
- _StencilMask("Mask Layer", Range(0, 255)) = 1
- [Enum(CompareFunction)] _StencilComp("Mask Mode", Int) = 6
-
- _Albedo("Albedo", 2D) = "white" {}
- _CutOff("Alpha CutOff", Float) = 0.5
-
- _NoiseMap("Noise Map", 2D) = "white"{}
- }
-
- SubShader{
- Tags{ "Queue" = "AlphaTest-1" "IgnoreProjector" = "False" "RenderType" = "Transparent" "RenderType" = "MKGlow" }
- Stencil
- {
- Ref 255
- ReadMask[_StencilMask]
- Comp[_StencilComp]
- }
-
- //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
- Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" "RenderType" = "MKGlow" }
- LOD 100
-
- //ZWrite Off
- Blend One OneMinusSrcAlpha//SrcAlpha OneMinusSrcAlpha
- //AlphaToMask On
-
- Pass{
- Cull Front
- ZTest LEqual
- ZWrite Off
- Blend One OneMinusSrcAlpha
- CGPROGRAM
-#pragma vertex vert
-#pragma fragment frag
-
-#include "UnityCG.cginc"
-
- struct appdata_t {
- float4 vertex : POSITION;
- float2 texcoord : TEXCOORD0;
- fixed4 color : COLOR;
- float2 maskcoord : TEXCOORD1;
- };
-
- struct v2f {
- float4 vertex : SV_POSITION;
- half2 texcoord : TEXCOORD0;
- fixed4 color : COLOR;
- half2 maskcoord : TEXCOORD1;
- half2 norisecoord : TEXCOORD2;
- //fixed4 color : COLOR;
- };
-
- //sampler2D _MainTex;
-
- float4 _MainTex_ST;
- float4 _Color1;
- float4 _Color2;
- float _Step1;
- float _Intensity;
-
- sampler2D _Albedo;
- float4 _Albedo_ST;
-
- sampler2D _NoiseMap;
- float4 _NoiseMap_ST;
-
- float _CutOff;
-
- v2f vert(appdata_t v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.texcoord = TRANSFORM_TEX(v.texcoord, _Albedo);
- o.color = v.color;
- o.norisecoord = TRANSFORM_TEX(v.texcoord, _NoiseMap);
- return o;
- }
-
- sampler2D _MainTex;
-
- fixed4 frag(v2f i) : SV_Target
- {
- float alpha = tex2D(_Albedo, i.texcoord).a;
- if(alpha <= _CutOff)
- discard;
-
- fixed4 col = tex2D(_Albedo, i.texcoord);
-
- fixed norise = tex2D(_NoiseMap, i.norisecoord).r;
-
- if (norise > _Intensity)
- discard;
-
- float blendV = col.r;
- float texA = col.a;
-
- //col = lerp(_Color2,_Color1,smoothstep(0,_Step1,blendV));
- col = lerp(_Color2,_Color1, _Intensity);
-
- //col *= _Intensity;
-
- //col.xyz *= texA;
- //col.a *= texA;
- //col *= i.color;
-
- //return fixed4(col.r, col.g, col.b, col.a);
- return col;
- }
- ENDCG
- }
-
-
-
- }
-
-} \ No newline at end of file
diff --git a/Assets/Art/Shaders/Effects/RimLight 1.shader.meta b/Assets/Art/Shaders/Effects/RimLight 1.shader.meta
deleted file mode 100644
index 42ccdd1b..00000000
--- a/Assets/Art/Shaders/Effects/RimLight 1.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: bcf940f2b1c46ba4ea736cc0d9807771
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Art/Shaders/Effects/RimLight.shader b/Assets/Art/Shaders/Effects/RimLight.shader
deleted file mode 100644
index 4083623e..00000000
--- a/Assets/Art/Shaders/Effects/RimLight.shader
+++ /dev/null
@@ -1,58 +0,0 @@
-Shader "Unlit/RimLight"
-{
- Properties
- {
- _MainTex ("Texture", 2D) = "white" {}
- }
- SubShader
- {
- Tags { "RenderType"="Opaque" }
- LOD 100
-
- Pass
- {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
- // make fog work
- #pragma multi_compile_fog
-
- #include "UnityCG.cginc"
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- UNITY_FOG_COORDS(1)
- float4 vertex : SV_POSITION;
- };
-
- sampler2D _MainTex;
- float4 _MainTex_ST;
-
- v2f vert (appdata v)
- {
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = TRANSFORM_TEX(v.uv, _MainTex);
- UNITY_TRANSFER_FOG(o,o.vertex);
- return o;
- }
-
- fixed4 frag (v2f i) : SV_Target
- {
- // sample the texture
- fixed4 col = tex2D(_MainTex, i.uv);
- // apply fog
- UNITY_APPLY_FOG(i.fogCoord, col);
- return col;
- }
- ENDCG
- }
- }
-}
diff --git a/Assets/Art/Shaders/Effects/RimLight.shader.meta b/Assets/Art/Shaders/Effects/RimLight.shader.meta
deleted file mode 100644
index 9fd5a646..00000000
--- a/Assets/Art/Shaders/Effects/RimLight.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 1b7109bb6e56e9a47af0551d67c44bc8
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- nonModifiableTextures: []
- userData:
- assetBundleName:
- assetBundleVariant: