summaryrefslogtreecommitdiff
path: root/Assets/Art/Vfx/GrabSquaresEffect/Shaders
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Art/Vfx/GrabSquaresEffect/Shaders')
-rw-r--r--Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader79
-rw-r--r--Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader.meta9
-rw-r--r--Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader59
-rw-r--r--Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader.meta9
4 files changed, 0 insertions, 156 deletions
diff --git a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader b/Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader
deleted file mode 100644
index bc246d32..00000000
--- a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader
+++ /dev/null
@@ -1,79 +0,0 @@
-// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
-
-Shader "GrabSquaresEffect/GrabSquare" {
- Properties{
- [HDR]_Color("Color", Color) = (0.5,0.5,0.5,0.5)
- _MainTex("Particle Texture", 2D) = "white" {}
- _DistTex("Distort Texture", 2D) = "white" {}
- _Params("_Params (X=OffsetMultiply, YZW=Unused)", Float) = (0.05, 0, 0, 0)
- }
- Category{
- Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
- Blend SrcAlpha OneMinusSrcAlpha
- Cull Back Lighting Off ZWrite Off
-
- SubShader {
- GrabPass{ "_GrabTexture" }
- Pass {
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
-
- fixed4 _Color;
- sampler2D _MainTex;
- sampler2D _GrabTexture;
- sampler2D _DistTex;
- float4 _Params;
-
- struct appdata_t {
- float4 vertex : POSITION;
- fixed4 color : COLOR;
- float2 texcoord : TEXCOORD0;
- };
-
- struct v2f {
- float4 vertex : SV_POSITION;
- half4 texcoord : TEXCOORD0;
- float4 color : COLOR;
- half4 screenuv : TEXCOORD1;
- };
-
- float4 _MainTex_ST;
-
- v2f vert(appdata_t v)
- {
- v2f o;
-
- o.vertex = UnityObjectToClipPos(v.vertex);
-
- o.color = v.color;
- o.texcoord.xy = TRANSFORM_TEX(v.texcoord, _MainTex);
-
- half4 screenpos = ComputeGrabScreenPos(o.vertex);
- o.screenuv.xy = screenpos.xy / screenpos.w;
-
- return o;
- }
-
- float4 frag(v2f i) : SV_Target
- {
- half4 distTex = tex2D(_DistTex, i.texcoord.xy);
- half4 mainTex = tex2D(_MainTex, i.texcoord.xy);
- half2 distOffest = (distTex.xy * 2 - 1) * _Params.x * i.color.a;
-
- half2 uv = i.screenuv.xy + distOffest;
- half4 grabTex = tex2D(_GrabTexture, uv);
- half4 col = 2.0f * i.color * _Color * mainTex;
-
- col = grabTex + mainTex * col;
- col.a = saturate(col.a);
-
- return col;
- }
- ENDCG
- }
- }
- }
-}
diff --git a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader.meta b/Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader.meta
deleted file mode 100644
index a7693a48..00000000
--- a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/GrabSquares.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 8179a30e204672b4294c85da979f18a6
-timeCreated: 1496488047
-licenseType: Free
-ShaderImporter:
- defaultTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader b/Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader
deleted file mode 100644
index c31b7376..00000000
--- a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader
+++ /dev/null
@@ -1,59 +0,0 @@
-// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
-
-Shader "MoveableLineRenderer/AddHDR" {
- Properties{
- [HDR]_Color("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
- Cull Off Lighting Off ZWrite Off
-
- SubShader {
- Pass {
-
- CGPROGRAM
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
-
- fixed4 _Color;
- sampler2D _MainTex;
-
- struct appdata_t {
- float4 position : POSITION;
- fixed4 color : COLOR;
- float2 texcoord : TEXCOORD0;
- };
-
- struct v2f {
- float4 position : SV_POSITION;
- fixed4 color : COLOR;
- float2 texcoord : TEXCOORD0;
- };
-
- float4 _MainTex_ST;
-
- v2f vert(appdata_t v)
- {
- v2f o;
- o.position = UnityObjectToClipPos(v.position);
- o.color = v.color;
- o.texcoord = TRANSFORM_TEX(v.texcoord,_MainTex);
- return o;
- }
-
- float4 frag(v2f i) : SV_Target
- {
- float4 mainTex = tex2D(_MainTex, i.texcoord);
- float4 color = 2.0f * i.color * mainTex * _Color;
- color.a = saturate(color.a);
- return color;
- }
- ENDCG
- }
- }
- }
-}
diff --git a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader.meta b/Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader.meta
deleted file mode 100644
index 1bf994ef..00000000
--- a/Assets/Art/Vfx/GrabSquaresEffect/Shaders/ParticleAddHDR.shader.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 64e082eebd83ad746897927ad97b5c0d
-timeCreated: 1496488047
-licenseType: Free
-ShaderImporter:
- defaultTextures: []
- userData:
- assetBundleName:
- assetBundleVariant: