From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../UMotionEditor/Shaders/UnlitDashedLine.shader | 70 ---------------------- 1 file changed, 70 deletions(-) delete mode 100644 Assets/ThirdParty/UMotion/UMotionEditor/Shaders/UnlitDashedLine.shader (limited to 'Assets/ThirdParty/UMotion/UMotionEditor/Shaders/UnlitDashedLine.shader') diff --git a/Assets/ThirdParty/UMotion/UMotionEditor/Shaders/UnlitDashedLine.shader b/Assets/ThirdParty/UMotion/UMotionEditor/Shaders/UnlitDashedLine.shader deleted file mode 100644 index 37798944..00000000 --- a/Assets/ThirdParty/UMotion/UMotionEditor/Shaders/UnlitDashedLine.shader +++ /dev/null @@ -1,70 +0,0 @@ -Shader "UMotion Editor/Unlit Dashed Line" -{ - Properties - { - _Color("Line Color (RGB) Trans (A)", color) = (0, 0, 0, 1) - _Thickness("Line Thikness", Range(0, 4)) = 0.9 - _DashFrequency("Dash Frequency", Range(0, 150)) = 100 - } - - SubShader - { - Tags {"Queue"="Transparent" "RenderType"="Transparent" "IgnoreProjector"="True" "DisableBatching"="True" } - LOD 100 - - ZWrite Off - Blend SrcAlpha OneMinusSrcAlpha - Cull Off - - Pass - { - CGPROGRAM - #pragma vertex vert - #pragma fragment frag - #pragma target 3.0 - - #include "UnityCG.cginc" - - fixed4 _Color; - half _Thickness; - half _DashFrequency; - - struct vInput - { - float4 vertex : POSITION; - half4 texcoord : TEXCOORD0; - }; - - struct vOutput - { - float4 pos : SV_POSITION; - float2 uv : TEXCOORD0; - }; - - vOutput vert(vInput i) - { - vOutput o; - - o.pos = UnityObjectToClipPos(i.vertex); - - o.uv = i.texcoord.xy; - o.uv.x *= length(float3(unity_ObjectToWorld[0].z, unity_ObjectToWorld[1].z, unity_ObjectToWorld[2].z)); - - return o; - } - - fixed4 frag(vOutput i) : SV_Target - { - half2 mass = half2(sin(i.uv.x * _DashFrequency), i.uv.y); - - half2 width = abs(ddx(mass)) + abs(ddy(mass)); - half2 smoothed = smoothstep(half2(0, 0), width * _Thickness, mass.xy); - half alpha = max(smoothed.x, smoothed.y); - - return fixed4(_Color.x, _Color.y, _Color.z, 1 - alpha); - } - - ENDCG - } //Pass - } //SubShader -} //Shader -- cgit v1.1-26-g67d0